Lines Matching refs:postdiv
63 u32 pcw, int postdiv)
86 return ((unsigned long)vco + postdiv - 1) / postdiv;
116 int postdiv)
123 /* set postdiv */
126 val |= (ffs(postdiv) - 1) << pll->data->pd_shift;
128 /* postdiv and pcw need to set at the same time if on same register */
154 * @postdiv: The post divider (output)
159 static void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv,
179 *postdiv = 1 << val;
182 *postdiv = 1 << val;
183 if ((u64)freq * *postdiv >= fmin)
188 /* _pcw = freq * postdiv / fin * 2^pcwfbits */
201 u32 postdiv;
203 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate);
204 mtk_pll_set_rate_regs(pll, pcw, postdiv);
213 u32 postdiv;
216 postdiv = (readl(pll->pd_addr) >> pll->data->pd_shift) & POSTDIV_MASK;
217 postdiv = 1 << postdiv;
222 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv);
230 int postdiv;
232 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate);
234 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv);