Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/spi/
Dspi_pl022.c331 uint32_t postdiv; in spi_pl022_calc_postdiv() local
333 for (postdiv = SCR_MAX + 1; postdiv > SCR_MIN + 1; --postdiv) { in spi_pl022_calc_postdiv()
334 if (pclk / (prescale * (postdiv - 1)) > baud) { in spi_pl022_calc_postdiv()
338 return postdiv - 1; in spi_pl022_calc_postdiv()
348 uint32_t postdiv; in spi_pl022_configure() local
397 postdiv = spi_pl022_calc_postdiv(pclk, spicfg->frequency, prescale); in spi_pl022_configure()
400 cr0 |= (postdiv << SSP_CR0_SCR_LSB); in spi_pl022_configure()