summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch b/extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch
new file mode 100644
index 00000000..d5a4cf67
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap3-beagle-Use-GPTIMERi-1-for-clockevents.patch
@@ -0,0 +1,42 @@
1From 101b0aedf8152711847e2f9f347d267a3ac7f287 Mon Sep 17 00:00:00 2001
2From: Sanjeev Premi <premi@ti.com>
3Date: Fri, 24 Jun 2011 16:23:45 +0000
4Subject: [PATCH 7/7] omap3: beagle: Use GPTIMERi 1 for clockevents
5
6The current selection of the GPTIMER on was result of
7a hardware issue in early versions of the Beagleboards
8(Ax and B1 thru B4). [1] [2]
9
10Its been long since the hardware issue has been fixed.
11This patch uses GPTIMER 1 for all newer board revisions
12incl. Beagleboard XM.
13
14 [1] http://thread.gmane.org/gmane.comp.hardware.beagleboard.general/91
15 [2] Errata #7 at http://elinux.org/BeagleBoard#Errata
16
17Signed-off-by: Sanjeev Premi <premi@ti.com>
18Cc: Paul Walmsley <paul@pwsan.com>
19Reviewed-by: Paul Walmsley <paul@pwsan.com>
20---
21 arch/arm/mach-omap2/board-omap3beagle.c | 5 ++++-
22 1 files changed, 4 insertions(+), 1 deletions(-)
23
24diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
25index 61564a4..20d5912 100644
26--- a/arch/arm/mach-omap2/board-omap3beagle.c
27+++ b/arch/arm/mach-omap2/board-omap3beagle.c
28@@ -806,7 +806,10 @@ static void __init omap3_beagle_init_irq(void)
29 {
30 omap_init_irq();
31 #ifdef CONFIG_OMAP_32K_TIMER
32- omap2_gp_clockevent_set_gptimer(12);
33+ if (omap3_beagle_version == OMAP3BEAGLE_BOARD_AXBX)
34+ omap2_gp_clockevent_set_gptimer(12);
35+ else
36+ omap2_gp_clockevent_set_gptimer(1);
37 #endif
38 }
39
40--
411.6.6.1
42