Commit c62ec6a9 authored by Thomas Abraham's avatar Thomas Abraham Committed by Ben Dooks

ARM: S5PV210: Rearrange assignment of clock for fout apll/mpll/epll clocks

The assignment of clock rates for fout apll/mpll/epll is moved further
up in the s5pv210_setup_clocks function because the subsequent patches
require the clock rate of fout clocks to be setup.
Signed-off-by: default avatarThomas Abraham <thomas.ab@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent eb1ef1ed
...@@ -369,6 +369,10 @@ void __init_or_cpufreq s5pv210_setup_clocks(void) ...@@ -369,6 +369,10 @@ void __init_or_cpufreq s5pv210_setup_clocks(void)
mpll = s5p_get_pll45xx(xtal, __raw_readl(S5P_MPLL_CON), pll_4502); mpll = s5p_get_pll45xx(xtal, __raw_readl(S5P_MPLL_CON), pll_4502);
epll = s5p_get_pll45xx(xtal, __raw_readl(S5P_EPLL_CON), pll_4500); epll = s5p_get_pll45xx(xtal, __raw_readl(S5P_EPLL_CON), pll_4500);
clk_fout_apll.rate = apll;
clk_fout_mpll.rate = mpll;
clk_fout_epll.rate = epll;
printk(KERN_INFO "S5PV210: PLL settings, A=%ld, M=%ld, E=%ld", printk(KERN_INFO "S5PV210: PLL settings, A=%ld, M=%ld, E=%ld",
apll, mpll, epll); apll, mpll, epll);
...@@ -398,10 +402,6 @@ void __init_or_cpufreq s5pv210_setup_clocks(void) ...@@ -398,10 +402,6 @@ void __init_or_cpufreq s5pv210_setup_clocks(void)
HCLKP=%ld, PCLKM=%ld, PCLKD=%ld, PCLKP=%ld\n", HCLKP=%ld, PCLKM=%ld, PCLKD=%ld, PCLKP=%ld\n",
armclk, hclk200, hclk166, hclk133, pclk100, pclk83, pclk66); armclk, hclk200, hclk166, hclk133, pclk100, pclk83, pclk66);
clk_fout_apll.rate = apll;
clk_fout_mpll.rate = mpll;
clk_fout_epll.rate = epll;
clk_f.rate = armclk; clk_f.rate = armclk;
clk_h.rate = hclk133; clk_h.rate = hclk133;
clk_p.rate = pclk66; clk_p.rate = pclk66;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment