Searched refs:pll2_n (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/board/spear/x600/ |
H A D | fpga.c | 192 int pll2_m, pll2_n, pll2_p, expi_x, expi_y; in expi_setup() local 195 pll2_n = 15; in expi_setup() 213 writel((pll2_m << 24) | (pll2_p << 8) | (pll2_n), &misc->pll2_frq); in expi_setup()
|
/openbmc/linux/drivers/clk/ |
H A D | clk-lmk04832.c | 379 unsigned int pll2_n, p, pll2_r; in lmk04832_vco_recalc_rate() local 395 pll2_n = FIELD_PREP(0x030000, 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 476 pll2_n = num >> 2; in lmk04832_calc_pll2_params() 479 pll2_n = num; in lmk04832_calc_pll2_params() 482 if (pll2_n < 1 || pll2_n > 0x03ffff) in lmk04832_calc_pll2_params() 487 *n = pll2_n; in lmk04832_calc_pll2_params() 491 return DIV_ROUND_CLOSEST(prate * 2 * pll2_p * pll2_n, pll2_r); in lmk04832_calc_pll2_params()
|