All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM:OMAP2: Add OVERO_GPIO_BT_XGATE to Overo board init
@ 2008-09-14  5:18 Steve Sakoman
  2008-10-06  8:45 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Sakoman @ 2008-09-14  5:18 UTC (permalink / raw)
  To: Linux OMAP Mailing List

Drive OVERO_GPIO_BT_XGATE low rather than relying on the pin mux pull
down set by U-boot

Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 arch/arm/mach-omap2/board-overo.c             |    6 ++++++
 arch/arm/plat-omap/include/mach/board-overo.h |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-overo.c
b/arch/arm/mach-omap2/board-overo.c
index 396ec33..5c23b4d 100644
--- a/arch/arm/mach-omap2/board-overo.c
+++ b/arch/arm/mach-omap2/board-overo.c
@@ -207,6 +207,12 @@ static void __init overo_init(void)
 		printk(KERN_ERR "could not obtain gpio for OVERO_GPIO_W2W_NRESET\n");
 	}

+	if ((gpio_request(OVERO_GPIO_BT_XGATE, "OVERO_GPIO_BT_XGATE") == 0) &&
+	    (gpio_direction_output(OVERO_GPIO_BT_XGATE, 0) == 0))
+		gpio_export(OVERO_GPIO_BT_XGATE, 0);
+	else
+		printk(KERN_ERR "could not obtain gpio for OVERO_GPIO_BT_XGATE\n");
+
 	if ((gpio_request(OVERO_GPIO_BT_NRESET, "OVERO_GPIO_BT_NRESET") == 0) &&
 	    (gpio_direction_output(OVERO_GPIO_BT_NRESET, 1) == 0)) {
 		gpio_export(OVERO_GPIO_BT_NRESET, 0);
diff --git a/arch/arm/plat-omap/include/mach/board-overo.h
b/arch/arm/plat-omap/include/mach/board-overo.h
index b70f22a..7ecae66 100644
--- a/arch/arm/plat-omap/include/mach/board-overo.h
+++ b/arch/arm/plat-omap/include/mach/board-overo.h
@@ -16,6 +16,7 @@
 #ifndef __ASM_ARCH_OVERO_H
 #define __ASM_ARCH_OVERO_H

+#define OVERO_GPIO_BT_XGATE	15
 #define OVERO_GPIO_W2W_NRESET	16
 #define OVERO_GPIO_BT_NRESET	164
 #define OVERO_GPIO_USBH_CPEN	168
-- 
1.5.4.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-06  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-14  5:18 [PATCH] ARM:OMAP2: Add OVERO_GPIO_BT_XGATE to Overo board init Steve Sakoman
2008-10-06  8:45 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.