Lines Matching refs:postdiv2
64 u32 postdiv1, fbdiv, dsmpd, postdiv2, refdiv, frac, bypass; in rk628_cru_clk_get_rate_pll() local
94 postdiv2 = (con1 & PLL_POSTDIV2_MASK) >> PLL_POSTDIV2_SHIFT; in rk628_cru_clk_get_rate_pll()
113 do_div(foutpostdiv, postdiv2); in rk628_cru_clk_get_rate_pll()
124 u8 dsmpd = 1, postdiv1 = 0, postdiv2 = 0, refdiv = 0; in rk628_cru_clk_set_rate_pll() local
168 for (postdiv2 = 1; postdiv2 < 8; postdiv2++) { in rk628_cru_clk_set_rate_pll()
169 if (postdiv % postdiv2) in rk628_cru_clk_set_rate_pll()
172 postdiv1 = postdiv / postdiv2; in rk628_cru_clk_set_rate_pll()
177 if (postdiv2 > 7) in rk628_cru_clk_set_rate_pll()
186 fout *= postdiv1 * postdiv2; in rk628_cru_clk_set_rate_pll()
189 postdiv2 = 1; in rk628_cru_clk_set_rate_pll()
243 do_div(foutpostdiv, postdiv2); in rk628_cru_clk_set_rate_pll()
249 PLL_DSMPD(dsmpd) | PLL_POSTDIV2(postdiv2) | in rk628_cru_clk_set_rate_pll()