Searched refs:baud_rate_val (Results 1 – 2 of 2) sorted by relevance
253 u32 ctrl_reg, baud_rate_val; in cdns_spi_config_clock_freq() local263 baud_rate_val = CDNS_SPI_BAUD_DIV_MIN; in cdns_spi_config_clock_freq()264 while ((baud_rate_val < CDNS_SPI_BAUD_DIV_MAX) && in cdns_spi_config_clock_freq()265 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()266 baud_rate_val++; in cdns_spi_config_clock_freq()269 ctrl_reg |= baud_rate_val << CDNS_SPI_BAUD_DIV_SHIFT; in cdns_spi_config_clock_freq()271 xspi->speed_hz = frequency / (2 << baud_rate_val); in cdns_spi_config_clock_freq()
470 u32 config_reg, req_hz, baud_rate_val = 0; in zynqmp_qspi_setup_transfer() local481 while ((baud_rate_val < GQSPI_BAUD_DIV_MAX) && in zynqmp_qspi_setup_transfer()483 (GQSPI_BAUD_DIV_SHIFT << baud_rate_val)) > req_hz) in zynqmp_qspi_setup_transfer()484 baud_rate_val++; in zynqmp_qspi_setup_transfer()497 config_reg |= (baud_rate_val << GQSPI_CFG_BAUD_RATE_DIV_SHIFT); in zynqmp_qspi_setup_transfer()