From 63e3e838a1d6e2fca2794730d1db88a34d1d1c67 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 5 Nov 2012 11:04:45 +0000 Subject: ramips: enable USB power on the DIR-645 Closes #12422. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34082 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/linux/ramips/files/arch/mips/ralink') diff --git a/target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c b/target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c index 0c6fbdbae..825da27f7 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -113,6 +114,10 @@ static void __init dir_645_gpio_init(void) RT3883_GPIO_MODE_UART0(RT3883_GPIO_MODE_GPIO) | RT3883_GPIO_MODE_JTAG | RT3883_GPIO_MODE_PCI(RT3883_GPIO_MODE_PCI_FNC)); + + gpio_request_one(DIR_645_GPIO_USB_POWER, + GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, + "USB power"); } static void __init dir_645_init(void) -- cgit v1.2.3