diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-01-25 11:16:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-01-25 11:16:59 +0000 |
commit | 1ba627f03b848199000f628788cd4d128b72cc0b (patch) | |
tree | 63a9726cf2b061b13156dbe817d4791574732657 /target/linux | |
parent | 2ecc39baaf74f738714ad29e390f1271385816a2 (diff) | |
download | master-187ad058-1ba627f03b848199000f628788cd4d128b72cc0b.tar.gz master-187ad058-1ba627f03b848199000f628788cd4d128b72cc0b.tar.bz2 master-187ad058-1ba627f03b848199000f628788cd4d128b72cc0b.zip |
ar71xx: archer c7: define LEDs connected to the AR8327 switch
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39395 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c index 7a3ffd3c96..3f9f0623dd 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-archer-c7.c @@ -118,6 +118,14 @@ static struct gpio_keys_button archer_c7_gpio_keys[] __initdata = { }, }; +static const struct ar8327_led_info archer_c7_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"), +}; + /* GMAC0 of the AR8327 switch is connected to the QCA9558 SoC via SGMII */ static struct ar8327_pad_cfg archer_c7_ar8327_pad0_cfg = { .mode = AR8327_PAD_MAC_SGMII, @@ -159,6 +167,8 @@ static struct ar8327_platform_data archer_c7_ar8327_data = { .rxpause = 1, }, .led_cfg = &archer_c7_ar8327_led_cfg, + .num_leds = ARRAY_SIZE(archer_c7_leds_ar8327), + .leds = archer_c7_leds_ar8327, }; static struct mdio_board_info archer_c7_mdio0_info[] = { |