Searched refs:spi_hz (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/spi/ |
H A D | spi-bcm2835aux.c | 345 unsigned long spi_hz, clk_hz, speed; in bcm2835aux_spi_transfer_one() local 357 spi_hz = tfr->speed_hz; in bcm2835aux_spi_transfer_one() 360 if (spi_hz >= clk_hz / 2) { in bcm2835aux_spi_transfer_one() 362 } else if (spi_hz) { in bcm2835aux_spi_transfer_one() 363 speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in bcm2835aux_spi_transfer_one()
|
H A D | spi-rzv2m-csi.c | 343 static void rzv2m_csi_setup_clock(struct rzv2m_csi_priv *csi, u32 spi_hz) in rzv2m_csi_setup_clock() argument 362 spi_hz = spi_hz > CSI_MAX_SPI_SCKO ? CSI_MAX_SPI_SCKO : spi_hz; in rzv2m_csi_setup_clock() 364 cks = DIV_ROUND_UP(csiclk_rate, spi_hz << 1); in rzv2m_csi_setup_clock()
|
H A D | spi-microchip-core.c | 440 unsigned long clk_hz, spi_hz, clk_gen; in mchp_corespi_calculate_clkgen() local 445 spi_hz = min(target_hz, clk_hz); in mchp_corespi_calculate_clkgen() 457 clk_gen = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; in mchp_corespi_calculate_clkgen() 459 clk_gen = DIV_ROUND_UP(clk_hz, spi_hz); in mchp_corespi_calculate_clkgen()
|
H A D | spi-bcm2835.c | 1054 unsigned long spi_hz, cdiv; in bcm2835_spi_transfer_one() local 1059 spi_hz = tfr->speed_hz; in bcm2835_spi_transfer_one() 1061 if (spi_hz >= bs->clk_hz / 2) { in bcm2835_spi_transfer_one() 1063 } else if (spi_hz) { in bcm2835_spi_transfer_one() 1065 cdiv = DIV_ROUND_UP(bs->clk_hz, spi_hz); in bcm2835_spi_transfer_one()
|
H A D | spi-sh-msiof.c | 268 u32 spi_hz = t->speed_hz; in sh_msiof_spi_set_clk_regs() local 272 if (!spi_hz || !parent_rate) { in sh_msiof_spi_set_clk_regs() 274 parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs() 278 div = DIV_ROUND_UP(parent_rate, spi_hz); in sh_msiof_spi_set_clk_regs() 294 "Requested SPI transfer rate %d is too low\n", spi_hz); in sh_msiof_spi_set_clk_regs()
|