aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <eballetbo@gmail.com>2010-10-08 13:22:19 -0400
committerTony Lindgren <tony@atomide.com>2010-10-08 13:22:19 -0400
commit61e118dd7755417c541a8ecf32a82c3971258cff (patch)
treed75b3d5f8fef1f6f9bf9b83465170ea575a9d828 /arch/arm/mach-omap2
parente844b1da87270d96aef3fc79763ecc2c6541a71b (diff)
omap3: Add external VBUS power switch and overcurrent detect onIGEP v2 board
GPIO for various devices are missing from the board initialization. This patch adds support for the VBUS and over current gpios. Without this patch, input/outputs from these two sources are ignored. Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/board-igep0020.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c
index c437031554b..2f40d77a2f1 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -275,6 +275,22 @@ static int igep2_twl_gpio_setup(struct device *dev,
275 igep2_vmmc1_supply.dev = mmc[0].dev; 275 igep2_vmmc1_supply.dev = mmc[0].dev;
276 igep2_vmmc2_supply.dev = mmc[1].dev; 276 igep2_vmmc2_supply.dev = mmc[1].dev;
277 277
278 /*
279 * REVISIT: need ehci-omap hooks for external VBUS
280 * power switch and overcurrent detect
281 */
282 if ((gpio_request(gpio + 1, "GPIO_EHCI_NOC") < 0) ||
283 (gpio_direction_input(gpio + 1) < 0))
284 pr_err("IGEP2: Could not obtain gpio for EHCI NOC");
285
286 /*
287 * TWL4030_GPIO_MAX + 0 == ledA, GPIO_USBH_CPEN
288 * (out, active low)
289 */
290 if ((gpio_request(gpio + TWL4030_GPIO_MAX, "GPIO_USBH_CPEN") < 0) ||
291 (gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0) < 0))
292 pr_err("IGEP2: Could not obtain gpio for USBH_CPEN");
293
278 return 0; 294 return 0;
279}; 295};
280 296