aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-21 17:17:42 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-21 17:17:42 +0000
commitd9e5296e8f007698f73ee1697c904dd340c6ef8b (patch)
treee51e350dfa06ced88aa03d99b54df7c133588510 /target/linux/ar71xx
parent784084850a00d1b66256e0debb3227ee284ff71e (diff)
downloadupstream-d9e5296e8f007698f73ee1697c904dd340c6ef8b.tar.gz
upstream-d9e5296e8f007698f73ee1697c904dd340c6ef8b.tar.bz2
upstream-d9e5296e8f007698f73ee1697c904dd340c6ef8b.zip
ar71xx: mynet-n750: define LEDs connected to the AR8327 switch
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4743/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39361 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
index a8335cc1a5..9d69dc53fc 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c
@@ -98,6 +98,19 @@ static struct gpio_keys_button mynet_n750_gpio_keys[] __initdata = {
},
};
+static const struct ar8327_led_info mynet_n750_leds_ar8327[] __initconst = {
+ AR8327_LED_INFO(PHY0_0, HW, "wd:green:lan1"),
+ AR8327_LED_INFO(PHY1_0, HW, "wd:green:lan2"),
+ AR8327_LED_INFO(PHY2_0, HW, "wd:green:lan3"),
+ AR8327_LED_INFO(PHY3_0, HW, "wd:green:lan4"),
+ AR8327_LED_INFO(PHY4_0, HW, "wd:green:wan"),
+ AR8327_LED_INFO(PHY0_1, HW, "wd:yellow:lan1"),
+ AR8327_LED_INFO(PHY1_1, HW, "wd:yellow:lan2"),
+ AR8327_LED_INFO(PHY2_1, HW, "wd:yellow:lan3"),
+ AR8327_LED_INFO(PHY3_1, HW, "wd:yellow:lan4"),
+ AR8327_LED_INFO(PHY4_1, HW, "wd:yellow:wan"),
+};
+
static struct ar8327_pad_cfg mynet_n750_ar8327_pad0_cfg = {
.mode = AR8327_PAD_MAC_RGMII,
.txclk_delay_en = true,
@@ -124,6 +137,8 @@ static struct ar8327_platform_data mynet_n750_ar8327_data = {
.rxpause = 1,
},
.led_cfg = &mynet_n750_ar8327_led_cfg,
+ .num_leds = ARRAY_SIZE(mynet_n750_leds_ar8327),
+ .leds = mynet_n750_leds_ar8327,
};
static struct mdio_board_info mynet_n750_mdio0_info[] = {