aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-03-03 12:47:33 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-03-03 12:47:33 +0000
commit8be514f386b056ac8e8f950db9fd6c4e156092c8 (patch)
tree7c0d462d3e710019a12a08f5c0308914ba0cb4bb /target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
parentba05322e57bbac3c018258113c553b085141b0fc (diff)
downloadmaster-187ad058-8be514f386b056ac8e8f950db9fd6c4e156092c8.tar.gz
master-187ad058-8be514f386b056ac8e8f950db9fd6c4e156092c8.tar.bz2
master-187ad058-8be514f386b056ac8e8f950db9fd6c4e156092c8.zip
ar71xx: fixes leds for dir-825-c1
Signed-off-by: Alexander Stadler <sa.maillists@univie.ac.at> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35854 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
index 568dbe4489..2f44ce0fb1 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c
@@ -29,8 +29,9 @@
#include "machtypes.h"
#define DIR825C1_GPIO_LED_BLUE_USB 11
-#define DIR825C1_GPIO_LED_ORANGE_POWER 15
-#define DIR825C1_GPIO_LED_BLUE_POWER 14
+#define DIR825C1_GPIO_LED_ORANGE_POWER 14
+#define DIR825C1_GPIO_LED_BLUE_POWER 22
+#define DIR825C1_GPIO_LED_BLUE_WPS 15
#define DIR825C1_GPIO_LED_ORANGE_PLANET 19
#define DIR825C1_GPIO_LED_BLUE_PLANET 18
@@ -50,23 +51,32 @@ static struct gpio_led dir825c1_leds_gpio[] __initdata = {
.name = "d-link:blue:usb",
.gpio = DIR825C1_GPIO_LED_BLUE_USB,
.active_low = 1,
- }, {
+ },
+ {
.name = "d-link:orange:power",
.gpio = DIR825C1_GPIO_LED_ORANGE_POWER,
.active_low = 1,
- }, {
+ },
+ {
.name = "d-link:blue:power",
.gpio = DIR825C1_GPIO_LED_BLUE_POWER,
.active_low = 1,
- }, {
+ },
+ {
+ .name = "d-link:blue:wps",
+ .gpio = DIR825C1_GPIO_LED_BLUE_WPS,
+ .active_low = 1,
+ },
+ {
.name = "d-link:orange:planet",
.gpio = DIR825C1_GPIO_LED_ORANGE_PLANET,
.active_low = 1,
- }, {
+ },
+ {
.name = "d-link:blue:planet",
.gpio = DIR825C1_GPIO_LED_BLUE_PLANET,
.active_low = 1,
- }
+ },
};
static struct gpio_keys_button dir825c1_gpio_keys[] __initdata = {
@@ -77,14 +87,15 @@ static struct gpio_keys_button dir825c1_gpio_keys[] __initdata = {
.debounce_interval = DIR825C1_KEYS_DEBOUNCE_INTERVAL,
.gpio = DIR825C1_GPIO_BTN_RESET,
.active_low = 1,
- }, {
+ },
+ {
.desc = "wps",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
.debounce_interval = DIR825C1_KEYS_DEBOUNCE_INTERVAL,
.gpio = DIR825C1_GPIO_BTN_WPS,
.active_low = 1,
- }
+ },
};
static struct ar8327_pad_cfg dir825c1_ar8327_pad0_cfg = {