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
master
Felix Fietkau 2011-07-24 08:02:20 +00:00
parent 9f478c3f48
commit 4417ab46f2
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include <asm/mips_machine.h> #include <asm/mips_machine.h>
#include <asm/mach-ar71xx/ar71xx.h> #include <asm/mach-ar71xx/ar71xx.h>
#include <asm/mach-ar71xx/gpio.h>
#include "machtype.h" #include "machtype.h"
#include "devices.h" #include "devices.h"
@ -207,6 +208,8 @@ static void __init wzrhpag300h_setup(void)
ar71xx_add_device_eth(1); ar71xx_add_device_eth(1);
ar71xx_add_device_usb(); ar71xx_add_device_usb();
gpio_request(2, "usb");
gpio_direction_output(2, 1);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpag300h_leds_gpio), ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpag300h_leds_gpio),
wzrhpag300h_leds_gpio); wzrhpag300h_leds_gpio);