Searched refs:fclk (Results 1 – 3 of 3) sorted by relevance
67 static void SpiMasterInit(u8 mode, u8 cs_active, u32 fclk) in SpiMasterInit() argument76 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() argument684 && (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()
190 static __inline void spi_set_sclk(u32 fclk) in spi_set_sclk() argument200 reg_val |= sysclk.apbclk*UNIT_MHZ/(fclk*2) - 1; in spi_set_sclk()
208 int tls_spi_setup(u8 mode, u8 cs_active, u32 fclk);