Lines Matching refs:clkin
52 static ulong ast2500_get_mpll_rate(ulong clkin, u32 mpll_reg) in ast2500_get_mpll_rate() argument
60 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_mpll_rate()
67 static ulong ast2500_get_hpll_rate(ulong clkin, u32 hpll_reg) in ast2500_get_hpll_rate() argument
75 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_hpll_rate()
118 ulong clkin = ast2500_get_clkin(priv->scu); in ast2500_clk_get_rate() local
128 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
132 rate = ast2500_get_mpll_rate(clkin, in ast2500_clk_get_rate()
140 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
222 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_ddr() local
230 ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_ddr()
243 return ast2500_get_mpll_rate(clkin, mpll_reg); in ast2500_configure_ddr()
248 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_mac() local
249 ulong hpll_rate = ast2500_get_hpll_rate(clkin, in ast2500_configure_mac()
335 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_d2pll() local
350 new_rate = ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_d2pll()