aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-20 10:23:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-20 10:23:06 +0000
commit506b40b62881259210091b740d8fe7f3a709626f (patch)
tree71631572d71baf80ac203318d3e2807de30d33e1 /target
parentc17cfab5602356579979d0ce14c9f41b5f2be818 (diff)
downloadupstream-506b40b62881259210091b740d8fe7f3a709626f.tar.gz
upstream-506b40b62881259210091b740d8fe7f3a709626f.tar.bz2
upstream-506b40b62881259210091b740d8fe7f3a709626f.zip
ar71xx: tl-wr1043nd-v2: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39346
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
index 0c415b969c..b70c586025 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd-v2.c
@@ -103,6 +103,14 @@ static struct gpio_keys_button tl_wr1043_v2_gpio_keys[] __initdata = {
},
};
+static const struct ar8327_led_info tl_wr1043_leds_ar8327[] = {
+ AR8327_LED_INFO(PHY0_0, HW, "tp-link:green:lan4"),
+ AR8327_LED_INFO(PHY1_0, HW, "tp-link:green:lan3"),
+ AR8327_LED_INFO(PHY2_0, HW, "tp-link:green:lan2"),
+ AR8327_LED_INFO(PHY3_0, HW, "tp-link:green:lan1"),
+ AR8327_LED_INFO(PHY4_0, HW, "tp-link:green:wan"),
+};
+
/* GMAC0 of the AR8327 switch is connected to the QCA9558 SoC via SGMII */
static struct ar8327_pad_cfg wr1043nd_v2_ar8327_pad0_cfg = {
.mode = AR8327_PAD_MAC_SGMII,
@@ -144,6 +152,8 @@ static struct ar8327_platform_data wr1043nd_v2_ar8327_data = {
.rxpause = 1,
},
.led_cfg = &wr1043nd_v2_ar8327_led_cfg,
+ .num_leds = ARRAY_SIZE(tl_wr1043_leds_ar8327),
+ .leds = tl_wr1043_leds_ar8327,
};
static struct mdio_board_info wr1043nd_v2_mdio0_info[] = {