Searched refs:spbr (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/spi/ |
H A D | spi-rspi.c | 257 int brdv = 0, spbr; in rspi_set_rate() local 261 while (spbr > 255 && brdv < 3) { in rspi_set_rate() 263 spbr = DIV_ROUND_UP(spbr + 1, 2) - 1; in rspi_set_rate() 266 rspi_write8(rspi, clamp(spbr, 0, 255), RSPI_SPBR); in rspi_set_rate() 342 int brdv = 0, spbr; in qspi_set_config_register() local 350 spbr = 0; in qspi_set_config_register() 353 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz); in qspi_set_config_register() 354 while (spbr > 255 && brdv < 3) { in qspi_set_config_register() 356 spbr = DIV_ROUND_UP(spbr, 2); in qspi_set_config_register() 358 spbr = clamp(spbr, 0, 255); in qspi_set_config_register() [all …]
|
H A D | spi-bcm-qspi.c | 293 u32 spbr = 0; in bcm_qspi_calc_spbr() local 297 spbr = clk_speed_hz / (xp->speed_hz * 2); in bcm_qspi_calc_spbr() 299 return spbr; in bcm_qspi_calc_spbr() 614 u32 spcr, spbr = 0; in bcm_qspi_hw_set_parms() local 649 spbr = bcm_qspi_calc_spbr(MSPI_BASE_FREQ * 4, xp); in bcm_qspi_hw_set_parms() 650 if (spbr > QSPI_SPBR_MAX) { in bcm_qspi_hw_set_parms() 686 spbr = bcm_qspi_calc_spbr(qspi->base_clk, xp); in bcm_qspi_hw_set_parms() 687 spbr = clamp_val(spbr, bcm_qspi_spbr_min(qspi), QSPI_SPBR_MAX); in bcm_qspi_hw_set_parms() 688 bcm_qspi_write(qspi, MSPI, MSPI_SPCR0_LSB, spbr); in bcm_qspi_hw_set_parms()
|
/openbmc/u-boot/drivers/spi/ |
H A D | sh_qspi.c | 50 u8 spbr; member 89 writeb(0x01, &ss->regs->spbr); in sh_qspi_init()
|