Home
last modified time | relevance | path

Searched refs:scbr (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/spi/
H A Datmel-quadspi.c482 u32 scbr; in atmel_qspi_setup() local
496 scbr = DIV_ROUND_UP(src_rate, spi->max_speed_hz); in atmel_qspi_setup()
497 if (scbr > 0) in atmel_qspi_setup()
498 scbr--; in atmel_qspi_setup()
505 aq->scr |= QSPI_SCR_SCBR(scbr); in atmel_qspi_setup()
H A Dspi-atmel.c877 u32 scbr, csr; in atmel_spi_set_xfer_speed() local
895 scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); in atmel_spi_set_xfer_speed()
901 if (scbr >= (1 << SPI_SCBR_SIZE)) { in atmel_spi_set_xfer_speed()
904 xfer->speed_hz, scbr, bus_hz/255); in atmel_spi_set_xfer_speed()
907 if (scbr == 0) { in atmel_spi_set_xfer_speed()
910 xfer->speed_hz, scbr, bus_hz); in atmel_spi_set_xfer_speed()
914 csr = SPI_BFINS(SCBR, scbr, csr); in atmel_spi_set_xfer_speed()
916 xfer->effective_speed_hz = bus_hz / scbr; in atmel_spi_set_xfer_speed()