]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Need to enable 32k-sync clock
authorKevin Hilman <khilman@mvista.com>
Tue, 13 Nov 2007 22:45:42 +0000 (14:45 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 23 Nov 2007 20:27:07 +0000 (12:27 -0800)
When CONFIG_OMAP_RESET_CLOCKS=y is enabled on OMAP3, the 32k sync
clock is disabled, resulting in a crash when any access to it is done,
including a sched_clock().

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/common.c

index f0e75c2f313259515f8aaa081c080b27d5c00744..c5c19a6037d1264674fd782347240791a5aebdab 100644 (file)
@@ -236,6 +236,12 @@ static int __init omap_init_clocksource_32k(void)
                        "%s: can't register clocksource!\n";
 
        if (cpu_is_omap16xx() || cpu_class_is_omap2()) {
+               struct clk *sync_32k_ick;
+
+               sync_32k_ick = clk_get(NULL, "omap_32ksync_ick");
+               if (sync_32k_ick)
+                       clk_enable(sync_32k_ick);
+
                clocksource_32k.mult = clocksource_hz2mult(32768,
                                            clocksource_32k.shift);