Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-fsl-lpspi.c321 int scldiv; in fsl_lpspi_set_bitrate() local
341 scldiv = div / (1 << prescale) - 2; in fsl_lpspi_set_bitrate()
342 if (scldiv >= 0 && scldiv < 256) { in fsl_lpspi_set_bitrate()
348 if (scldiv < 0 || scldiv >= 256) in fsl_lpspi_set_bitrate()
351 writel(scldiv | (scldiv << 8) | ((scldiv >> 1) << 16), in fsl_lpspi_set_bitrate()
355 perclk_rate, config.speed_hz, prescale, scldiv); in fsl_lpspi_set_bitrate()