Lines Matching refs:clkin
56 static ulong ast2500_get_mpll_rate(ulong clkin, u32 mpll_reg) in ast2500_get_mpll_rate() argument
64 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_mpll_rate()
71 static ulong ast2500_get_hpll_rate(ulong clkin, u32 hpll_reg) in ast2500_get_hpll_rate() argument
79 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_hpll_rate()
122 ulong clkin = ast2500_get_clkin(priv->scu); in ast2500_clk_get_rate() local
131 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
135 rate = ast2500_get_mpll_rate(clkin, in ast2500_clk_get_rate()
143 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
154 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
271 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_ddr() local
279 ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_ddr()
292 return ast2500_get_mpll_rate(clkin, mpll_reg); in ast2500_configure_ddr()
297 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_mac() local
298 ulong hpll_rate = ast2500_get_hpll_rate(clkin, in ast2500_configure_mac()
387 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_d2pll() local
402 new_rate = ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_d2pll()