ARM: tegra11: clock: Keep PLL_REFE enabled during init
Alex Frid [Wed, 24 Apr 2013 21:06:40 +0000 (14:06 -0700)]
Enabled PLL_REFE in early kernel initialization, to provide clock for
h/w sequencers initialization. PLL is disabled in late init.

Bug 1275799

Change-Id: Ie79a3f0989fb3a40714659c7ed082dce2d004d5c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/222651
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/tegra11_clocks.c

index 572ff22..5fce89a 100644 (file)
@@ -367,7 +367,7 @@ static __initdata struct tegra_clk_init_table tegra11x_clk_init_table[] = {
        { "csite",      NULL,           0,              true },
 #endif
        { "pll_u",      NULL,           480000000,      true },
-       { "pll_re_vco", NULL,           612000000,      false },
+       { "pll_re_vco", NULL,           612000000,      true },
        { "xusb_falcon_src",    "pll_p",        204000000,      false},
        { "xusb_host_src",      "pll_p",        102000000,      false},
        { "xusb_ss_src",        "pll_re_vco",   122400000,      false},
index 2d1e0a6..2b73856 100644 (file)
@@ -7769,4 +7769,12 @@ void __init tegra11x_init_clocks(void)
 #ifdef CONFIG_PM_SLEEP
        register_syscore_ops(&tegra_clk_syscore_ops);
 #endif
+
+}
+
+static int __init tegra11x_clk_late_init(void)
+{
+       clk_disable(&tegra_pll_re_vco);
+       return 0;
 }
+late_initcall(tegra11x_clk_late_init);