diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 08:02:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 08:02:20 +0000 |
commit | 4417ab46f223a33c76374c3d7ed2024e8e48a446 (patch) | |
tree | 14878a929c79f3006274d99c3b813892e6220774 /target/linux | |
parent | 9f478c3f4803f4cbce1586f2d1f808b58c4f3f90 (diff) | |
download | master-187ad058-4417ab46f223a33c76374c3d7ed2024e8e48a446.tar.gz master-187ad058-4417ab46f223a33c76374c3d7ed2024e8e48a446.tar.bz2 master-187ad058-4417ab46f223a33c76374c3d7ed2024e8e48a446.zip |
ar71xx: enable the usb power regulator on the wzr-hp-ag300h through gpio 2 (#9684)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27739 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-ag300h.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <asm/mips_machine.h> #include <asm/mach-ar71xx/ar71xx.h> +#include <asm/mach-ar71xx/gpio.h> #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); |