mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
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>
This commit is contained in:
parent
e844b1da87
commit
61e118dd77
@ -275,6 +275,22 @@ static int igep2_twl_gpio_setup(struct device *dev,
|
|||||||
igep2_vmmc1_supply.dev = mmc[0].dev;
|
igep2_vmmc1_supply.dev = mmc[0].dev;
|
||||||
igep2_vmmc2_supply.dev = mmc[1].dev;
|
igep2_vmmc2_supply.dev = mmc[1].dev;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* REVISIT: need ehci-omap hooks for external VBUS
|
||||||
|
* power switch and overcurrent detect
|
||||||
|
*/
|
||||||
|
if ((gpio_request(gpio + 1, "GPIO_EHCI_NOC") < 0) ||
|
||||||
|
(gpio_direction_input(gpio + 1) < 0))
|
||||||
|
pr_err("IGEP2: Could not obtain gpio for EHCI NOC");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TWL4030_GPIO_MAX + 0 == ledA, GPIO_USBH_CPEN
|
||||||
|
* (out, active low)
|
||||||
|
*/
|
||||||
|
if ((gpio_request(gpio + TWL4030_GPIO_MAX, "GPIO_USBH_CPEN") < 0) ||
|
||||||
|
(gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0) < 0))
|
||||||
|
pr_err("IGEP2: Could not obtain gpio for USBH_CPEN");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user