Searched refs:baud_rate_val (Results 1 – 4 of 4) sorted by relevance
251 u32 ctrl_reg, baud_rate_val; in cdns_spi_config_clock_freq() local261 baud_rate_val = CDNS_SPI_BAUD_DIV_MIN; in cdns_spi_config_clock_freq()262 while ((baud_rate_val < CDNS_SPI_BAUD_DIV_MAX) && in cdns_spi_config_clock_freq()263 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq()264 baud_rate_val++; in cdns_spi_config_clock_freq()267 ctrl_reg |= baud_rate_val << CDNS_SPI_BAUD_DIV_SHIFT; in cdns_spi_config_clock_freq()269 xspi->speed_hz = frequency / (2 << baud_rate_val); in cdns_spi_config_clock_freq()
271 u32 control, baud_rate_val = 0; in mchp_coreqspi_setup_clock() local277 baud_rate_val = DIV_ROUND_UP(clk_hz, 2 * spi->max_speed_hz); in mchp_coreqspi_setup_clock()278 if (baud_rate_val > MAX_DIVIDER || baud_rate_val < MIN_DIVIDER) { in mchp_coreqspi_setup_clock()286 control |= baud_rate_val << CONTROL_CLKRATE_SHIFT; in mchp_coreqspi_setup_clock()
336 u32 config_reg, baud_rate_val = 0; in zynq_qspi_config_op() local347 while ((baud_rate_val < ZYNQ_QSPI_CONFIG_BAUD_DIV_MAX) && in zynq_qspi_config_op()348 (clk_get_rate(xqspi->refclk) / (2 << baud_rate_val)) > in zynq_qspi_config_op()350 baud_rate_val++; in zynq_qspi_config_op()363 config_reg |= (baud_rate_val << ZYNQ_QSPI_CONFIG_BAUD_DIV_SHIFT); in zynq_qspi_config_op()
458 u32 config_reg, baud_rate_val = 0; in zynqmp_qspi_config_op() local464 while ((baud_rate_val < GQSPI_BAUD_DIV_MAX) && in zynqmp_qspi_config_op()466 (GQSPI_BAUD_DIV_SHIFT << baud_rate_val)) > qspi->max_speed_hz) in zynqmp_qspi_config_op()467 baud_rate_val++; in zynqmp_qspi_config_op()480 config_reg |= (baud_rate_val << GQSPI_CFG_BAUD_RATE_DIV_SHIFT); in zynqmp_qspi_config_op()