Home
last modified time | relevance | path

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

/external/u-boot/drivers/clk/rockchip/
Dclk_rk3128.c84 u32 vco_khz; in pll_para_config() local
98 vco_khz = freq_khz * postdiv1 * postdiv2; in pll_para_config()
100 if (vco_khz < (VCO_MIN_HZ / 1000) || vco_khz > (VCO_MAX_HZ / 1000) || in pll_para_config()
110 best_diff_khz = vco_khz; in pll_para_config()
114 fbdiv = vco_khz / fref_khz; in pll_para_config()
117 diff_khz = vco_khz - fbdiv * fref_khz; in pll_para_config()
Dclk_rk3399.c294 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll() local
295 u32 output_khz = vco_khz / div->postdiv1 / div->postdiv2; in rkclk_set_pll()
300 div->postdiv2, vco_khz, output_khz); in rkclk_set_pll()
301 assert(vco_khz >= VCO_MIN_KHZ && vco_khz <= VCO_MAX_KHZ && in rkclk_set_pll()
342 u32 vco_khz; in pll_para_config() local
356 vco_khz = freq_khz * postdiv1 * postdiv2; in pll_para_config()
358 if (vco_khz < VCO_MIN_KHZ || vco_khz > VCO_MAX_KHZ || in pll_para_config()
368 best_diff_khz = vco_khz; in pll_para_config()
372 fbdiv = vco_khz / fref_khz; in pll_para_config()
375 diff_khz = vco_khz - fbdiv * fref_khz; in pll_para_config()
Dclk_rk3288.c232 uint vco_khz; in pll_para_config() local
251 vco_khz = freq_khz * no; in pll_para_config()
253 vco_khz *= *ext_div; in pll_para_config()
255 if (vco_khz < VCO_MIN_KHZ || vco_khz > VCO_MAX_KHZ || no > max_no) { in pll_para_config()
263 best_diff_khz = vco_khz; in pll_para_config()
271 nf = vco_khz / fref_khz; in pll_para_config()
274 diff_khz = vco_khz - nf * fref_khz; in pll_para_config()
Dclk_rk3328.c241 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll() local
242 u32 output_khz = vco_khz / div->postdiv1 / div->postdiv2; in rkclk_set_pll()
247 div->postdiv2, vco_khz, output_khz); in rkclk_set_pll()
248 assert(vco_khz >= VCO_MIN_KHZ && vco_khz <= VCO_MAX_KHZ && in rkclk_set_pll()