Home
last modified time | relevance | path

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

/u-boot/drivers/spi/
A Datmel_spi.c130 u32 scbr, csrx, mode; in atmel_spi_claim_bus() local
132 scbr = (priv->bus_clk_rate + freq - 1) / freq; in atmel_spi_claim_bus()
133 if (scbr > ATMEL_SPI_CSRx_SCBR_MAX) in atmel_spi_claim_bus()
136 if (scbr < 1) in atmel_spi_claim_bus()
137 scbr = 1; in atmel_spi_claim_bus()
139 csrx = ATMEL_SPI_CSRx_SCBR(scbr); in atmel_spi_claim_bus()
A Datmel-quadspi.c445 u32 scr, scbr, mask, new_value; in atmel_qspi_set_speed() local
448 scbr = DIV_ROUND_UP(aq->bus_clk_rate, hz); in atmel_qspi_set_speed()
449 if (scbr > 0) in atmel_qspi_set_speed()
450 scbr--; in atmel_qspi_set_speed()
452 new_value = QSPI_SCR_SCBR(scbr); in atmel_qspi_set_speed()

Completed in 5 milliseconds