Lines Matching refs:pcw
41 u32 pcw, int postdiv)
54 vco = (u64)fin * pcw;
93 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw,
106 /* postdiv and pcw need to set at the same time if on same register */
112 /* set pcw */
115 val |= pcw << pll->data->pcw_shift;
131 * @pcw: The pcw value (output)
137 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv,
171 *pcw = (u32)_pcw;
178 u32 pcw = 0;
181 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, parent_rate);
182 mtk_pll_set_rate_regs(pll, pcw, postdiv);
191 u32 pcw;
196 pcw = readl(pll->pcw_addr) >> pll->data->pcw_shift;
197 pcw &= GENMASK(pll->data->pcwbits - 1, 0);
199 return __mtk_pll_recalc_rate(pll, parent_rate, pcw, postdiv);
206 u32 pcw = 0;
209 mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate);
211 return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv);