aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-11-26 19:02:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-11-26 19:02:12 +0000
commitb7ae6717d81597013930ffcfdbb3f9c9692d82e3 (patch)
tree5f4d4ec66ada018a9a1b470c1cc40f386f7aa0b2
parent53fcb443df8be1db969d130bd5fd0b42cc3befbb (diff)
downloadupstream-b7ae6717d81597013930ffcfdbb3f9c9692d82e3.tar.gz
upstream-b7ae6717d81597013930ffcfdbb3f9c9692d82e3.tar.bz2
upstream-b7ae6717d81597013930ffcfdbb3f9c9692d82e3.zip
[adm5120] add Edimax BR-61x4WG board support to the LED driver, thanks to scream_ (closes: #2756)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9600 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/adm5120/files/drivers/leds/leds-adm5120.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c
index fb1f66241f..b57f97a036 100644
--- a/target/linux/adm5120/files/drivers/leds/leds-adm5120.c
+++ b/target/linux/adm5120/files/drivers/leds/leds-adm5120.c
@@ -130,6 +130,21 @@ LED_ARRAY(br6104k) {
LED_INV(ADM5120_GPIO_P4L0, "lan4_lnkact", NULL),
};
+LED_ARRAY(br61x4wg) {
+ LED_STD(ADM5120_GPIO_PIN0, "power", NULL),
+ LED_STD(ADM5120_GPIO_PIN5, "wlan", NULL),
+ LED_INV(ADM5120_GPIO_P0L1, "wan_speed", NULL),
+ LED_INV(ADM5120_GPIO_P0L0, "wan_lnkact", NULL),
+ LED_INV(ADM5120_GPIO_P1L1, "lan1_speed", NULL),
+ LED_INV(ADM5120_GPIO_P1L0, "lan1_lnkact", NULL),
+ LED_INV(ADM5120_GPIO_P2L1, "lan2_speed", NULL),
+ LED_INV(ADM5120_GPIO_P2L0, "lan2_lnkact", NULL),
+ LED_INV(ADM5120_GPIO_P3L1, "lan3_speed", NULL),
+ LED_INV(ADM5120_GPIO_P3L0, "lan3_lnkact", NULL),
+ LED_INV(ADM5120_GPIO_P4L1, "lan4_speed", NULL),
+ LED_INV(ADM5120_GPIO_P4L0, "lan4_lnkact", NULL),
+};
+
/*
* Mikrotik boards
*/
@@ -232,6 +247,7 @@ static struct mach_data machines[] __initdata = {
MACH_DATA(MACH_ADM5120_WPP54G, wp54g),
/* Edimax */
MACH_DATA(MACH_ADM5120_BR6104K, br6104k),
+ MACH_DATA(MACH_ADM5120_BR61x4WG, br61x4wg),
/* Mikrotik */
MACH_DATA(MACH_ADM5120_RB_133, rb133),
MACH_DATA(MACH_ADM5120_RB_133C, rb133),