Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-st-ssc4.c184 u32 spi_st_clk, sscbrg, var; in spi_st_setup() local
212 sscbrg = spi_st_clk / (2 * hz); in spi_st_setup()
213 if (sscbrg < 0x07 || sscbrg > BIT(16)) { in spi_st_setup()
215 "baudrate %d outside valid range %d\n", sscbrg, hz); in spi_st_setup()
220 spi_st->baud = spi_st_clk / (2 * sscbrg); in spi_st_setup()
221 if (sscbrg == BIT(16)) /* 16-bit counter wraps */ in spi_st_setup()
222 sscbrg = 0x0; in spi_st_setup()
224 writel_relaxed(sscbrg, spi_st->base + SSC_BRG); in spi_st_setup()
228 hz, spi_st->baud, sscbrg); in spi_st_setup()