Home
last modified time | relevance | path

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

/linux/drivers/clk/
H A Dclk-lmk04832.c379 unsigned int pll2_n, p, pll2_r; in lmk04832_vco_recalc_rate() local
403 pll2_r = FIELD_PREP(0x0f00, tmp[0]) | in lmk04832_vco_recalc_rate()
407 pll2_misc)) * pll2_n * pll2_p[p] / pll2_r; in lmk04832_vco_recalc_rate()
464 unsigned int pll2_n, pll2_p, pll2_r; in lmk04832_calc_pll2_params() local
473 pll2_r = DIV_ROUND_CLOSEST(prate, div); in lmk04832_calc_pll2_params()
478 pll2_r = pll2_r << 2; in lmk04832_calc_pll2_params()
484 if (pll2_r < 1 || pll2_r > 0xfff) in lmk04832_calc_pll2_params()
489 *r = pll2_r; in lmk04832_calc_pll2_params()
491 return DIV_ROUND_CLOSEST(prate * 2 * pll2_p * pll2_n, pll2_r); in lmk04832_calc_pll2_params()