Searched refs:scbr (Results 1 – 2 of 2) sorted by relevance
130 u32 scbr, csrx, mode; in atmel_spi_claim_bus() local132 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()
445 u32 scr, scbr, mask, new_value; in atmel_qspi_set_speed() local448 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 7 milliseconds