Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-cadence.c250 u32 ctrl_reg, baud_rate_val; in cdns_spi_config_clock_freq() local
260 baud_rate_val = CDNS_SPI_BAUD_DIV_MIN; in cdns_spi_config_clock_freq()
261 while ((baud_rate_val < CDNS_SPI_BAUD_DIV_MAX) && in cdns_spi_config_clock_freq()
262 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()
263 baud_rate_val++; in cdns_spi_config_clock_freq()
266 ctrl_reg |= baud_rate_val << CDNS_SPI_BAUD_DIV_SHIFT; in cdns_spi_config_clock_freq()
268 xspi->speed_hz = frequency / (2 << baud_rate_val); in cdns_spi_config_clock_freq()
Dspi-zynq-qspi.c324 u32 config_reg, baud_rate_val = 0; in zynq_qspi_config_op() local
335 while ((baud_rate_val < ZYNQ_QSPI_BAUD_DIV_MAX) && in zynq_qspi_config_op()
336 (clk_get_rate(xqspi->refclk) / (2 << baud_rate_val)) > in zynq_qspi_config_op()
338 baud_rate_val++; in zynq_qspi_config_op()
351 config_reg |= (baud_rate_val << ZYNQ_QSPI_BAUD_DIV_SHIFT); in zynq_qspi_config_op()
Dspi-zynqmp-gqspi.c456 u32 config_reg, req_hz, baud_rate_val = 0; in zynqmp_qspi_setup_transfer() local
467 while ((baud_rate_val < GQSPI_BAUD_DIV_MAX) && in zynqmp_qspi_setup_transfer()
469 (GQSPI_BAUD_DIV_SHIFT << baud_rate_val)) > req_hz) in zynqmp_qspi_setup_transfer()
470 baud_rate_val++; in zynqmp_qspi_setup_transfer()
483 config_reg |= (baud_rate_val << GQSPI_CFG_BAUD_RATE_DIV_SHIFT); in zynqmp_qspi_setup_transfer()