Lines Matching refs:postdiv1
37 .postdiv1 = _postdiv1, \
111 u32 postdiv1, postdiv2 = 1; in pll_clk_set_by_auto() local
124 postdiv1 = DIV_ROUND_UP(VCO_MIN_HZ / 1000, rate_khz); in pll_clk_set_by_auto()
125 if (postdiv1 > max_postdiv1) { in pll_clk_set_by_auto()
126 postdiv2 = DIV_ROUND_UP(postdiv1, max_postdiv1); in pll_clk_set_by_auto()
127 postdiv1 = DIV_ROUND_UP(postdiv1, postdiv2); in pll_clk_set_by_auto()
130 vco_khz = rate_khz * postdiv1 * postdiv2; in pll_clk_set_by_auto()
139 rate->postdiv1 = postdiv1; in pll_clk_set_by_auto()
229 output_hz = vco_hz / rate->postdiv1 / rate->postdiv2; in rkclk_set_pll()
232 pll, rate->fbdiv, rate->refdiv, rate->postdiv1, in rkclk_set_pll()
251 (rate->postdiv1 << PLL_POSTDIV1_SHIFT) | rate->fbdiv); in rkclk_set_pll()
272 u32 refdiv, fbdiv, postdiv1, postdiv2; in rkclk_pll_get_rate() local
285 postdiv1 = (con & PLL_POSTDIV1_MASK) >> PLL_POSTDIV1_SHIFT; in rkclk_pll_get_rate()
290 return (24 * fbdiv / (refdiv * postdiv1 * postdiv2)) * 1000000; in rkclk_pll_get_rate()