From 780f86e0c10bef384ac043f0ef4cfad1afdd5e26 Mon Sep 17 00:00:00 2001 From: Sanjeev Premi Date: Fri, 24 Jun 2011 16:23:45 +0000 Subject: [PATCH] omap3: beagle: Use GPTIMERi 1 for clockevents The current selection of the GPTIMER on was result of a hardware issue in early versions of the Beagleboards (Ax and B1 thru B4). [1] [2] Its been long since the hardware issue has been fixed. This patch uses GPTIMER 1 for all newer board revisions incl. Beagleboard XM. [1] http://thread.gmane.org/gmane.comp.hardware.beagleboard.general/91 [2] Errata #7 at http://elinux.org/BeagleBoard#Errata Signed-off-by: Sanjeev Premi Cc: Paul Walmsley Reviewed-by: Paul Walmsley --- arch/arm/mach-omap2/board-omap3beagle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index ddd5c7dd24d997..e51115a9def71f 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -580,7 +580,10 @@ static void __init omap3_beagle_init_irq(void) omap_init_irq(); gpmc_init(); #ifdef CONFIG_OMAP_32K_TIMER - omap2_gp_clockevent_set_gptimer(12); + if (omap3_beagle_version == OMAP3BEAGLE_BOARD_AXBX) + omap2_gp_clockevent_set_gptimer(12); + else + omap2_gp_clockevent_set_gptimer(1); #endif }