Searched refs:scbr (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/mtd/spi-nor/ |
D | atmel-quadspi.c | 560 u32 mr, scr, scbr; in atmel_qspi_init() local 574 scbr = DIV_ROUND_UP(src_rate, aq->clk_rate); in atmel_qspi_init() 575 if (scbr > 0) in atmel_qspi_init() 576 scbr--; in atmel_qspi_init() 577 scr = QSPI_SCR_SCBR(scbr); in atmel_qspi_init()
|
/Linux-v4.19/drivers/spi/ |
D | spi-atmel.c | 854 u32 scbr, csr; in atmel_spi_set_xfer_speed() local 866 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed() 872 if (scbr >= (1 << SPI_SCBR_SIZE)) { in atmel_spi_set_xfer_speed() 875 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed() 878 if (scbr == 0) { in atmel_spi_set_xfer_speed() 881 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed() 885 csr = SPI_BFINS(SCBR, scbr, csr); in atmel_spi_set_xfer_speed()
|