Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-fsl-lpspi.c318 unsigned int perclk_rate, scldiv, div; in fsl_lpspi_set_bitrate() local
322 perclk_rate = clk_get_rate(fsl_lpspi->clk_per); in fsl_lpspi_set_bitrate()
331 if (config.speed_hz > perclk_rate / 2) { in fsl_lpspi_set_bitrate()
337 div = DIV_ROUND_UP(perclk_rate, config.speed_hz); in fsl_lpspi_set_bitrate()
354 perclk_rate, config.speed_hz, prescale, scldiv); in fsl_lpspi_set_bitrate()