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> SVN-Revision: 47236
This commit is contained in:
parent
8d8a937272
commit
fb152a810c
@ -36,7 +36,7 @@
|
|||||||
#define WNR2200_GPIO_LED_LAN4_GREEN 16
|
#define WNR2200_GPIO_LED_LAN4_GREEN 16
|
||||||
#define WNR2200_GPIO_LED_PWR_AMBER 21
|
#define WNR2200_GPIO_LED_PWR_AMBER 21
|
||||||
#define WNR2200_GPIO_LED_PWR_GREEN 22
|
#define WNR2200_GPIO_LED_PWR_GREEN 22
|
||||||
|
#define WNR2200_GPIO_USB_5V 4
|
||||||
#define WNR2200_GPIO_USB_POWER 24
|
#define WNR2200_GPIO_USB_POWER 24
|
||||||
|
|
||||||
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
|
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
|
||||||
@ -127,9 +127,9 @@ static void __init wnr2200_setup(void)
|
|||||||
wnr2200_leds_gpio);
|
wnr2200_leds_gpio);
|
||||||
|
|
||||||
/* enable power for the USB port */
|
/* enable power for the USB port */
|
||||||
gpio_request_one(WNR2200_GPIO_USB_POWER,
|
ap9x_pci_setup_wmac_gpio(0,
|
||||||
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
|
BIT(WNR2200_GPIO_USB_5V),
|
||||||
"USB power");
|
BIT(WNR2200_GPIO_USB_5V));
|
||||||
|
|
||||||
ath79_register_usb();
|
ath79_register_usb();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user