diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-05 11:41:11 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-05 11:41:11 +0000 |
commit | 54df7d2b3497e8435a5078d16011eec7f531cdcb (patch) | |
tree | 872f6a4ff5939efe09bd788fe5f527f09d0fe288 /target/linux/ramips | |
parent | 96a221d754a904d3a1857ad1d8be26b9cf56f1ee (diff) | |
download | openwrt-54df7d2b3497e8435a5078d16011eec7f531cdcb.tar.gz openwrt-54df7d2b3497e8435a5078d16011eec7f531cdcb.zip |
AA: ramips: enable USB power on the DIR-645
Backport of r34082.
Closes #12422.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34085 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt3883/mach-dir-645.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <linux/ethtool.h> #include <linux/rt2x00_platform.h> #include <linux/spi/spi.h> +#include <linux/gpio.h> #include <asm/mach-ralink/machine.h> #include <asm/mach-ralink/dev-gpio-buttons.h> @@ -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) |