]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP2: Keep both APLLs active during bootup
authorJuha Yrjola <juha.yrjola@solidboot.com>
Thu, 21 Sep 2006 15:25:42 +0000 (18:25 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Thu, 21 Sep 2006 15:25:42 +0000 (18:25 +0300)
Enabling and disabling the 54 MHz and 96 MHz APLLs can happen
unnecessarily often during bootup. Make sure they're kept
enabled during init.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
arch/arm/mach-omap2/clock.c

index cab17f3005456a0bcfebba28849dbb45d6d9772a..0de201c3d50b4a09d488109338d90a1df12597a9 100644 (file)
@@ -1158,6 +1158,12 @@ int __init omap2_clk_init(void)
         */
        clk_enable(&sync_32k_ick);
        clk_enable(&omapctrl_ick);
+
+       /* Force the APLLs active during bootup to avoid disabling and
+        * enabling them unnecessarily. */
+       clk_enable(&apll96_ck);
+       clk_enable(&apll54_ck);
+
        if (cpu_is_omap2430())
                clk_enable(&sdrc_ick);
 
@@ -1167,3 +1173,12 @@ int __init omap2_clk_init(void)
 
        return 0;
 }
+
+static int __init omap2_disable_aplls(void)
+{
+       clk_disable(&apll96_ck);
+       clk_disable(&apll54_ck);
+
+       return 0;
+}
+late_initcall(omap2_disable_aplls);