From: Felix Fietkau Date: Sun, 24 Jul 2011 08:02:20 +0000 (+0000) Subject: ar71xx: enable the usb power regulator on the wzr-hp-ag300h through gpio 2 (#9684) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9105dad418a4b4f64395d68bc2c462c3612ea6da;p=openwrt%2Fstaging%2Fansuel.git ar71xx: enable the usb power regulator on the wzr-hp-ag300h through gpio 2 (#9684) SVN-Revision: 27739 --- diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-ag300h.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-ag300h.c index 2509a27568..768c02d1ac 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-ag300h.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-ag300h.c @@ -15,6 +15,7 @@ #include #include +#include #include "machtype.h" #include "devices.h" @@ -207,6 +208,8 @@ static void __init wzrhpag300h_setup(void) ar71xx_add_device_eth(1); ar71xx_add_device_usb(); + gpio_request(2, "usb"); + gpio_direction_output(2, 1); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpag300h_leds_gpio), wzrhpag300h_leds_gpio);