Home
last modified time | relevance | path

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

/linux/drivers/clk/mmp/
H A Dclk-audio.c100 } postdivs[] = { variable
140 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_recalc_rate()
146 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_recalc_rate()
154 val |= SSPA_AUD_PLL_CTRL1_DIV_OCLK_PATTERN(postdivs[postdiv].pattern); in audio_pll_recalc_rate()
159 freq /= postdivs[postdiv].divisor; in audio_pll_recalc_rate()
177 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_round_rate()
180 freq /= postdivs[postdiv].divisor; in audio_pll_round_rate()
206 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_set_rate()
207 if (rate * postdivs[postdiv].divisor != predivs[prediv].freq_vco) in audio_pll_set_rate()
212 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_set_rate()
[all …]
H A Dclk-pll.c68 static const u8 postdivs[] = {2, 3, 4, 5, 6, 8, 10, 12, 16}; in mmp_clk_pll_recalc_rate() local
76 do_div(rate, postdivs[postdiv]); in mmp_clk_pll_recalc_rate()