Searched refs:scbr (Results 1 – 2 of 2) sorted by relevance
482 u32 scbr; in atmel_qspi_setup() local496 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()
877 u32 scbr, csr; in atmel_spi_set_xfer_speed() local895 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()