Home
last modified time | relevance | path

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

/linux/drivers/clk/mxs/
H A Dclk-ssp.c24 u32 clock_divide, clock_rate; in mxs_ssp_set_clk_rate() local
29 for (clock_divide = 2; clock_divide <= 254; clock_divide += 2) { in mxs_ssp_set_clk_rate()
30 clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); in mxs_ssp_set_clk_rate()
36 if (clock_divide > 254) { in mxs_ssp_set_clk_rate()
42 ssp_sck = ssp_clk / clock_divide / (1 + clock_rate); in mxs_ssp_set_clk_rate()
46 val |= BF_SSP(clock_divide, TIMING_CLOCK_DIVIDE); in mxs_ssp_set_clk_rate()
54 __func__, clock_divide, clock_rate, ssp_clk, ssp_sck, rate); in mxs_ssp_set_clk_rate()