Home
last modified time | relevance | path

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

/u-boot/drivers/clk/rockchip/
A Dclk_rk3128.c85 u32 diff_khz, best_diff_khz; in pll_para_config() local
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()
127 if (diff_khz >= best_diff_khz) in pll_para_config()
130 best_diff_khz = diff_khz; in pll_para_config()
A Dclk_rk3288.c238 uint diff_khz, best_diff_khz; in pll_para_config() local
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()
288 if (diff_khz >= best_diff_khz) in pll_para_config()
291 best_diff_khz = diff_khz; in pll_para_config()
A Dclk_rk3399.c373 u32 diff_khz, best_diff_khz; in pll_para_config() local
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()
415 if (diff_khz >= best_diff_khz) in pll_para_config()
418 best_diff_khz = diff_khz; in pll_para_config()
A Dclk_px30.c104 u32 diff_khz, best_diff_khz; in pll_clk_set_by_auto() local
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()
147 if (diff_khz >= best_diff_khz) in pll_clk_set_by_auto()
150 best_diff_khz = diff_khz; in pll_clk_set_by_auto()

Completed in 13 milliseconds