Home
last modified time | relevance | path

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

/u-boot/drivers/spi/
A Dzynq_spi.c304 u8 baud_rate_val = 0; in zynq_spi_set_speed() local
313 baud_rate_val = 0x2; in zynq_spi_set_speed()
315 while ((baud_rate_val < ZYNQ_SPI_CR_BAUD_MAX) && in zynq_spi_set_speed()
317 (2 << baud_rate_val)) > speed)) in zynq_spi_set_speed()
318 baud_rate_val++; in zynq_spi_set_speed()
319 plat->speed_hz = speed / (2 << baud_rate_val); in zynq_spi_set_speed()
322 confr |= (baud_rate_val << ZYNQ_SPI_CR_BAUD_SHIFT); in zynq_spi_set_speed()
A Dzynqmp_gqspi.c318 u8 baud_rate_val = 0; in zynqmp_qspi_set_speed() local
327 while ((baud_rate_val < 8) && in zynqmp_qspi_set_speed()
329 (2 << baud_rate_val)) > speed)) in zynqmp_qspi_set_speed()
330 baud_rate_val++; in zynqmp_qspi_set_speed()
332 if (baud_rate_val > GQSPI_MAX_BAUD_RATE_VAL) in zynqmp_qspi_set_speed()
333 baud_rate_val = GQSPI_DFLT_BAUD_RATE_VAL; in zynqmp_qspi_set_speed()
335 plat->speed_hz = plat->frequency / (2 << baud_rate_val); in zynqmp_qspi_set_speed()
339 confr |= (baud_rate_val << 3); in zynqmp_qspi_set_speed()
341 zynqmp_qspi_set_tapdelay(bus, baud_rate_val); in zynqmp_qspi_set_speed()
A Dzynq_qspi.c600 u8 baud_rate_val = 0; in zynq_qspi_set_speed() local
609 baud_rate_val = 0x2; in zynq_qspi_set_speed()
611 while ((baud_rate_val < ZYNQ_QSPI_CR_BAUD_MAX) && in zynq_qspi_set_speed()
613 (2 << baud_rate_val)) > speed)) in zynq_qspi_set_speed()
614 baud_rate_val++; in zynq_qspi_set_speed()
616 plat->speed_hz = speed / (2 << baud_rate_val); in zynq_qspi_set_speed()
619 confr |= (baud_rate_val << ZYNQ_QSPI_CR_BAUD_SHIFT); in zynq_qspi_set_speed()

Completed in 6 milliseconds