Lines Matching refs:fout_hz
82 static int rockchip_pll_clk_set_postdiv(ulong fout_hz, in rockchip_pll_clk_set_postdiv() argument
89 if (fout_hz < MIN_FOUTVCO_FREQ) { in rockchip_pll_clk_set_postdiv()
92 freq = fout_hz * (*postdiv1) * (*postdiv2); in rockchip_pll_clk_set_postdiv()
101 fout_hz); in rockchip_pll_clk_set_postdiv()
111 ulong fout_hz) in rockchip_pll_clk_set_by_auto() argument
115 u32 foutvco = fout_hz; in rockchip_pll_clk_set_by_auto()
120 if (fin_hz == 0 || fout_hz == 0 || fout_hz == fin_hz) in rockchip_pll_clk_set_by_auto()
123 rockchip_pll_clk_set_postdiv(fout_hz, &postdiv1, &postdiv2, &foutvco); in rockchip_pll_clk_set_by_auto()
128 if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) { in rockchip_pll_clk_set_by_auto()
138 fin_hz, fout_hz, clk_gcd); in rockchip_pll_clk_set_by_auto()
145 fin_hz, fout_hz); in rockchip_pll_clk_set_by_auto()
171 unsigned long fout_hz) in rk3588_pll_clk_set_by_auto() argument
177 if (fin_hz == 0 || fout_hz == 0 || fout_hz == fin_hz) in rk3588_pll_clk_set_by_auto()
180 if (fout_hz > RK3588_FOUT_MAX_HZ || fout_hz < RK3588_FOUT_MIN_HZ) in rk3588_pll_clk_set_by_auto()
183 if (fin_hz / MHZ * MHZ == fin_hz && fout_hz / MHZ * MHZ == fout_hz) { in rk3588_pll_clk_set_by_auto()
185 fvco = fout_hz << s; in rk3588_pll_clk_set_by_auto()
201 pr_err("CANNOT FIND Fout by auto,fout = %lu\n", fout_hz); in rk3588_pll_clk_set_by_auto()
204 fvco = fout_hz << s; in rk3588_pll_clk_set_by_auto()
223 pr_err("CANNOT FIND Fout by auto,fout = %lu\n", fout_hz); in rk3588_pll_clk_set_by_auto()