Home
last modified time | relevance | path

Searched refs:fclk (Results 1 – 3 of 3) sorted by relevance

/device/soc/winnermicro/wm800/board/platform/drivers/spi/
Dwm_hostspi.c67 static void SpiMasterInit(u8 mode, u8 cs_active, u32 fclk) in SpiMasterInit() argument
76 SPIM_CLKCFG_REG = sysclk.apbclk*UNIT_MHZ/(fclk*2) - 1; in SpiMasterInit()
679 int tls_spi_setup(u8 mode, u8 cs_active, u32 fclk) in tls_spi_setup() argument
684 && (spi_port->speed_hz == fclk)) { in tls_spi_setup()
711 if ((fclk < TLS_SPI_FCLK_MIN) || (fclk > sysclk.apbclk * UNIT_MHZ / 2)) { // 2:TLS_SPI_FCLK_MAX in tls_spi_setup()
715 spi_port->speed_hz = fclk; in tls_spi_setup()
720 SpiMasterInit(mode, TLS_SPI_CS_LOW, fclk); in tls_spi_setup()
Dwm_spi_hal.h190 static __inline void spi_set_sclk(u32 fclk) in spi_set_sclk() argument
200 reg_val |= sysclk.apbclk*UNIT_MHZ/(fclk*2) - 1; in spi_set_sclk()
/device/soc/winnermicro/wm800/board/include/driver/
Dwm_hostspi.h208 int tls_spi_setup(u8 mode, u8 cs_active, u32 fclk);