Searched refs:sscbrg (Results 1 – 1 of 1) sorted by relevance
178 u32 spi_st_clk, sscbrg, var; in spi_st_setup() local194 sscbrg = spi_st_clk / (2 * hz); in spi_st_setup()195 if (sscbrg < 0x07 || sscbrg > BIT(16)) { in spi_st_setup()197 "baudrate %d outside valid range %d\n", sscbrg, hz); in spi_st_setup()201 spi_st->baud = spi_st_clk / (2 * sscbrg); in spi_st_setup()202 if (sscbrg == BIT(16)) /* 16-bit counter wraps */ in spi_st_setup()203 sscbrg = 0x0; in spi_st_setup()205 writel_relaxed(sscbrg, spi_st->base + SSC_BRG); in spi_st_setup()209 hz, spi_st->baud, sscbrg); in spi_st_setup()