From: Steve Sakoman Date: Sun, 14 Sep 2008 05:18:43 +0000 (-0700) Subject: ARM:OMAP2: Add OVERO_GPIO_BT_XGATE to Overo board init X-Git-Tag: v2.6.27-omap1~78 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d85146443d38ff51900ffe50ecda5c938251be9d;p=linux-2.6-omap-h63xx.git ARM:OMAP2: Add OVERO_GPIO_BT_XGATE to Overo board init Drive OVERO_GPIO_BT_XGATE low rather than relying on the pin mux pull down set by U-boot Signed-off-by: Steve Sakoman Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index cfa542a6140..4e2781a019f 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -229,6 +229,12 @@ static void __init overo_init(void) "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 b70f22a84b2..7ecae66966d 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