From: Kevin Hilman Date: Tue, 13 Nov 2007 22:45:42 +0000 (-0800) Subject: ARM: OMAP: Need to enable 32k-sync clock X-Git-Tag: v2.6.24-omap1~189 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=d9b7f2dfdccaa370b98abf5d5f850fb0a25571a5 ARM: OMAP: Need to enable 32k-sync clock 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index f0e75c2f313..c5c19a6037d 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c @@ -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);