aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-20 10:23:05 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-20 10:23:05 +0000
commita822f0a04d2db402378171eefac8e2fbb0af7909 (patch)
tree08cb633b8c60429dbed5b49e3381f5a345dd2c19 /target/linux/ar71xx
parent9497f61cc1a27450b6fa8fe083faa2b15ca200b7 (diff)
downloadupstream-a822f0a04d2db402378171eefac8e2fbb0af7909.tar.gz
upstream-a822f0a04d2db402378171eefac8e2fbb0af7909.tar.bz2
upstream-a822f0a04d2db402378171eefac8e2fbb0af7909.zip
ar71xx: tl-wdr4300: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39345 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
index bf4cf4629e..4a0ae968f3 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c
@@ -103,6 +103,14 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
},
};
+static const struct ar8327_led_info wdr4300_leds_ar8327[] __initconst = {
+ AR8327_LED_INFO(PHY0_0, HW, "tp-link:blue:wan"),
+ AR8327_LED_INFO(PHY1_0, HW, "tp-link:blue:lan1"),
+ AR8327_LED_INFO(PHY2_0, HW, "tp-link:blue:lan2"),
+ AR8327_LED_INFO(PHY3_0, HW, "tp-link:blue:lan3"),
+ AR8327_LED_INFO(PHY4_0, HW, "tp-link:blue:lan4"),
+};
+
static struct ar8327_pad_cfg wdr4300_ar8327_pad0_cfg = {
.mode = AR8327_PAD_MAC_RGMII,
.txclk_delay_en = true,
@@ -129,6 +137,8 @@ static struct ar8327_platform_data wdr4300_ar8327_data = {
.rxpause = 1,
},
.led_cfg = &wdr4300_ar8327_led_cfg,
+ .num_leds = ARRAY_SIZE(wdr4300_leds_ar8327),
+ .leds = wdr4300_leds_ar8327,
};
static struct mdio_board_info wdr4300_mdio0_info[] = {