Home
last modified time | relevance | path

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

/hal_intel-3.6.0/bsp_sedi/drivers/spi/
Dsedi_spi_dw_apb.c71 uint32_t prescale; member
241 uint32_t prescale = SEDI_RBFV(SPI, BAUDR, SCKDV, DEFAULT_PRESCALE); in lld_spi_default_config() local
255 SEDI_PREG_RBF_SET(SPI, BAUDR, SCKDV, prescale, &spi->baudr); in lld_spi_default_config()
261 context->prescale = prescale; in lld_spi_default_config()
287 static inline void lld_spi_config_prescale(sedi_spi_regs_t *spi, uint32_t prescale) in lld_spi_config_prescale() argument
289 SEDI_PREG_RBF_SET(SPI, BAUDR, SCKDV, prescale, &spi->baudr); in lld_spi_config_prescale()
680 context->prescale = SSI_IC_FREQ / (uint32_t)arg; in sedi_spi_control()
681 if (context->prescale < SEDI_RBFV(SPI, BAUDR, SCKDV, MIN_PRESCALE)) { in sedi_spi_control()
682 context->prescale = SEDI_RBFV(SPI, BAUDR, SCKDV, MIN_PRESCALE); in sedi_spi_control()
684 lld_spi_config_prescale(context->base, context->prescale); in sedi_spi_control()
[all …]