>       case CLOCK_EVT_MODE_ONESHOT:
>@@ -108,6 +109,9 @@ static void __init omap2_gp_clockevent_init(void)
>       omap_dm_timer_set_source(gptimer, OMAP_TIMER_SRC_SYS_CLK);
> #endif
>       tick_rate = clk_get_rate(omap_dm_timer_get_fclk(gptimer));
>+      if (cpu_is_omap44xx())
>+              /* Assuming 32kHz clk is driving GPT1 */
>+              tick_rate = 32768;

[Romit] This should be read from CM_CLKSEL_WKUP.CLKSEL_GPT1 to be proper. 

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to