summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch
new file mode 100644
index 00000000..f8512867
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/beagleboard-xmc/0002-omap-Beagle-only-Cx-boards-use-pin-23-for-write-prot.patch
@@ -0,0 +1,35 @@
1From 34d88746a9aa4aedb67e32579e559cbeb91de20f Mon Sep 17 00:00:00 2001
2From: Robert Nelson <robertcnelson@gmail.com>
3Date: Thu, 23 Sep 2010 18:22:48 -0700
4Subject: [PATCH 02/10] omap: Beagle: only Cx boards use pin 23 for write protect
5
6system_rev comes from u-boot and is a constant 0x20, so
7Bx boards also fall in this 'if' and will get setup with the
8wrong gpio_wp pin. Switch to using the Beagle revision routine
9to correcly set pin 23 only for C1/2/3 and C4 Boards. Bx boards
10will then use the correct default pin setting.
11
12Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
13Acked-by: Jarkko Nikula <jhnikula@gmail.com>
14Signed-off-by: Tony Lindgren <tony@atomide.com>
15---
16 arch/arm/mach-omap2/board-omap3beagle.c | 3 ++-
17 1 files changed, 2 insertions(+), 1 deletions(-)
18
19diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
20index 7ca2b3b..beb877c 100644
21--- a/arch/arm/mach-omap2/board-omap3beagle.c
22+++ b/arch/arm/mach-omap2/board-omap3beagle.c
23@@ -444,7 +444,8 @@ static struct gpio_led gpio_leds[];
24 static int beagle_twl_gpio_setup(struct device *dev,
25 unsigned gpio, unsigned ngpio)
26 {
27- if (system_rev >= 0x20 && system_rev <= 0x34301000) {
28+ if ((omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C1_3) ||
29+ (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C4)) {
30 omap_mux_init_gpio(23, OMAP_PIN_INPUT);
31 mmc[0].gpio_wp = 23;
32 } else {
33--
341.6.6.1
35