aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-19 18:18:12 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-19 18:18:12 +0000
commitefae73de2c7cdbe2ca6576be234b301286e96042 (patch)
tree7e7981200a2e4c0beb1ccb3531ec4bc13b6924ec /target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
parentdfd6005e5a4ebdc3e3bd97ead8d0c639582ee9b3 (diff)
downloadmaster-187ad058-efae73de2c7cdbe2ca6576be234b301286e96042.tar.gz
master-187ad058-efae73de2c7cdbe2ca6576be234b301286e96042.tar.bz2
master-187ad058-efae73de2c7cdbe2ca6576be234b301286e96042.zip
ar71xx: Send power to USB port on WNR2200
This patch fixes ticket #15267 by enabling power on the WNR2200's USB port. At present, the USB port on the WNR2200 is non-functional due to it not receiving power. This patch defines an additional GPIO pin, but none of the current GPIO definitions have been modified. Signed-off-by: Riley Baird <BM-2cVqnDuYbAU5do2DfJTrN7ZbAJ246S4XiX@bitmessage.ch> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47236 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
index bf7f9ee67f..a1de26a4b4 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
@@ -36,7 +36,7 @@
#define WNR2200_GPIO_LED_LAN4_GREEN 16
#define WNR2200_GPIO_LED_PWR_AMBER 21
#define WNR2200_GPIO_LED_PWR_GREEN 22
-
+#define WNR2200_GPIO_USB_5V 4
#define WNR2200_GPIO_USB_POWER 24
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
@@ -127,9 +127,9 @@ static void __init wnr2200_setup(void)
wnr2200_leds_gpio);
/* enable power for the USB port */
- gpio_request_one(WNR2200_GPIO_USB_POWER,
- GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
- "USB power");
+ ap9x_pci_setup_wmac_gpio(0,
+ BIT(WNR2200_GPIO_USB_5V),
+ BIT(WNR2200_GPIO_USB_5V));
ath79_register_usb();
}