Lines Matching refs:fbdiv
42 u32 fbdiv; member
54 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
328 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll()
333 pll_con, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
337 div->fbdiv >= PLL_DIV_MIN && div->fbdiv <= PLL_DIV_MAX); in rkclk_set_pll()
351 div->fbdiv << PLL_FBDIV_SHIFT); in rkclk_set_pll()
370 u32 ref_khz = OSC_HZ / KHz, refdiv, fbdiv = 0; in pll_para_config() local
406 fbdiv = vco_khz / fref_khz; in pll_para_config()
407 if (fbdiv >= max_fbdiv || fbdiv <= min_fbdiv) 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()
411 fbdiv++; in pll_para_config()
420 div->fbdiv = fbdiv; in pll_para_config()
843 {.refdiv = 1, .fbdiv = 12, .postdiv1 = 3, .postdiv2 = 2}; in rk3399_ddr_set_clk()
847 {.refdiv = 1, .fbdiv = 50, .postdiv1 = 6, .postdiv2 = 1}; in rk3399_ddr_set_clk()
851 {.refdiv = 2, .fbdiv = 100, .postdiv1 = 4, .postdiv2 = 1}; in rk3399_ddr_set_clk()
855 {.refdiv = 1, .fbdiv = 50, .postdiv1 = 3, .postdiv2 = 1}; in rk3399_ddr_set_clk()
859 {.refdiv = 2, .fbdiv = 111, .postdiv1 = 2, .postdiv2 = 1}; in rk3399_ddr_set_clk()
863 {.refdiv = 1, .fbdiv = 100, .postdiv1 = 3, .postdiv2 = 1}; in rk3399_ddr_set_clk()
867 {.refdiv = 1, .fbdiv = 116, .postdiv1 = 3, .postdiv2 = 1}; in rk3399_ddr_set_clk()