diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-22 22:38:19 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-22 22:38:19 +0000 |
commit | af015f956c35717909247a5732f6862d3de1476f (patch) | |
tree | c72d67ef23e35b8dd3e8177c4811773ed6eed759 /target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch | |
parent | 386cbfe45bc521baa889a8c261b2c77e69fc956f (diff) | |
download | upstream-af015f956c35717909247a5732f6862d3de1476f.tar.gz upstream-af015f956c35717909247a5732f6862d3de1476f.tar.bz2 upstream-af015f956c35717909247a5732f6862d3de1476f.zip |
ar71xx: add initial support for 3.2
Tested on the following boards:
ALFA AP96
TL-MR3220 v1
TL-WR1043ND v1
TL-WR2543ND v1
TL-WR703N v1
TL-WR741ND v1
TL-WR741ND v4
WNDR3700 v1
WZR-HP-G300NH
SVN-Revision: 29868
Diffstat (limited to 'target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch b/target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch new file mode 100644 index 0000000000..5171e909dc --- /dev/null +++ b/target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch @@ -0,0 +1,30 @@ +--- a/drivers/leds/leds-wndr3700-usb.c ++++ b/drivers/leds/leds-wndr3700-usb.c +@@ -12,7 +12,8 @@ + #include <linux/module.h> + #include <linux/platform_device.h> + +-#include <asm/mach-ar71xx/ar71xx.h> ++#include <asm/mach-ath79/ar71xx_regs.h> ++#include <asm/mach-ath79/ath79.h> + + #define DRIVER_NAME "wndr3700-led-usb" + +@@ -20,14 +21,14 @@ static void wndr3700_usb_led_set(struct + enum led_brightness brightness) + { + if (brightness) +- ar71xx_device_start(RESET_MODULE_GE1_PHY); ++ ath79_device_reset_clear(AR71XX_RESET_GE1_PHY); + else +- ar71xx_device_stop(RESET_MODULE_GE1_PHY); ++ ath79_device_reset_set(AR71XX_RESET_GE1_PHY); + } + + static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev) + { +- return ar71xx_device_stopped(RESET_MODULE_GE1_PHY) ? LED_OFF : LED_FULL; ++ return ath79_device_reset_get(AR71XX_RESET_GE1_PHY) ? LED_OFF : LED_FULL; + } + + static struct led_classdev wndr3700_usb_led = { |