ar71xx: fix bi-color QSS LED on the TL-WR941ND v2 board
authorGabor Juhos <juhosg@openwrt.org>
Fri, 1 Jan 2010 19:40:04 +0000 (19:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 1 Jan 2010 19:40:04 +0000 (19:40 +0000)
SVN-Revision: 18988

target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c

index af83116a7a2555c4d7096593c11fae69ace3f6bd..0f4277ea0dacc8eaa5ea62811e590e2b852707f3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  TP-LINK TL-WR941ND board support
  *
- *  Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
@@ -22,7 +22,8 @@
 #include "dev-leds-gpio.h"
 
 #define TL_WR941ND_GPIO_LED_SYSTEM     2
-#define TL_WR941ND_GPIO_LED_QSS                5
+#define TL_WR941ND_GPIO_LED_QSS_RED    4
+#define TL_WR941ND_GPIO_LED_QSS_GREEN  5
 
 #define TL_WR941ND_GPIO_BTN_RESET      3
 #define TL_WR941ND_GPIO_BTN_QSS                7
@@ -71,8 +72,10 @@ static struct gpio_led tl_wr941nd_leds_gpio[] __initdata = {
                .active_low     = 1,
        }, {
                .name           = "tl-wr941nd:red:qss",
-               .gpio           = TL_WR941ND_GPIO_LED_QSS,
-               .active_low     = 1,
+               .gpio           = TL_WR941ND_GPIO_LED_QSS_RED,
+       }, {
+               .name           = "tl-wr941nd:green:qss",
+               .gpio           = TL_WR941ND_GPIO_LED_QSS_GREEN,
        }
 };