Home
last modified time | relevance | path

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

/u-boot/drivers/clk/rockchip/
A Dclk_rk3128.c84 u32 fref_khz; in pll_para_config() local
116 fref_khz = ref_khz / refdiv; in pll_para_config()
118 fbdiv = vco_khz / fref_khz; in pll_para_config()
121 diff_khz = vco_khz - fbdiv * fref_khz; in pll_para_config()
122 if (fbdiv + 1 < max_fbdiv && diff_khz > fref_khz / 2) { in pll_para_config()
124 diff_khz = fref_khz - diff_khz; in pll_para_config()
A Dclk_rk3288.c237 uint fref_khz; in pll_para_config() local
273 fref_khz = ref_khz / nr; in pll_para_config()
274 if (fref_khz < FREF_MIN_KHZ) in pll_para_config()
276 if (fref_khz > FREF_MAX_KHZ) in pll_para_config()
279 nf = vco_khz / fref_khz; in pll_para_config()
282 diff_khz = vco_khz - nf * fref_khz; in pll_para_config()
283 if (nf + 1 < max_nf && diff_khz > fref_khz / 2) { in pll_para_config()
285 diff_khz = fref_khz - diff_khz; in pll_para_config()
A Dclk_rk3399.c372 u32 fref_khz; in pll_para_config() local
404 fref_khz = ref_khz / refdiv; in pll_para_config()
406 fbdiv = vco_khz / fref_khz; in pll_para_config()
409 diff_khz = vco_khz - fbdiv * fref_khz; in pll_para_config()
410 if (fbdiv + 1 < max_fbdiv && diff_khz > fref_khz / 2) { in pll_para_config()
412 diff_khz = fref_khz - diff_khz; in pll_para_config()
A Dclk_px30.c103 u32 fref_khz; in pll_clk_set_by_auto() local
135 fref_khz = ref_khz / refdiv; in pll_clk_set_by_auto()
137 fbdiv = vco_khz / fref_khz; in pll_clk_set_by_auto()
141 diff_khz = vco_khz - fbdiv * fref_khz; in pll_clk_set_by_auto()
142 if (fbdiv + 1 < max_fbdiv && diff_khz > fref_khz / 2) { in pll_clk_set_by_auto()
144 diff_khz = fref_khz - diff_khz; in pll_clk_set_by_auto()

Completed in 13 milliseconds