aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorDaniel Gonzalez Cabanelas <dgcbueu@gmail.com>2017-02-20 23:32:20 +0100
committerPiotr Dymacz <pepe2k@gmail.com>2017-03-13 00:12:07 +0100
commitad9ad376bb62bd9368be720e1c591b98eb3cbfad (patch)
treec04b1c20db5f3add67e5f890c5bf20d3454d93af /target/linux/ar71xx/files
parent09862bb006f0e382f3d476ebfda6c260822c2420 (diff)
downloadupstream-ad9ad376bb62bd9368be720e1c591b98eb3cbfad.tar.gz
upstream-ad9ad376bb62bd9368be720e1c591b98eb3cbfad.tar.bz2
upstream-ad9ad376bb62bd9368be720e1c591b98eb3cbfad.zip
ar71xx: WNDR4300: Fix switch HW controlled LEDs
The Netgear WNDR4300, equipped with an Atheros AR8327 Gigabit Switch, has two LEDs on each port for monitoring LAN activity, but it currently only uses one. Fix the configuration to use both. The patch provides this new configuration: - green LED: 1 Gbps link, 4Hz blink frequency - amber LED: 10/100 Mbps link. 4Hz for 100Mbps, 2Hz for 10Mbps Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
index 2884c6c83a..2a00a0ed96 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
@@ -136,11 +136,11 @@ static struct ar8327_pad_cfg wndr4300_ar8327_pad0_cfg = {
};
static struct ar8327_led_cfg wndr4300_ar8327_led_cfg = {
- .led_ctrl0 = 0xc737c737,
- .led_ctrl1 = 0x00000000,
+ .led_ctrl0 = 0xcc35cc35,
+ .led_ctrl1 = 0xcb37cb37,
.led_ctrl2 = 0x00000000,
- .led_ctrl3 = 0x0030c300,
- .open_drain = false,
+ .led_ctrl3 = 0x00f3cf00,
+ .open_drain = true,
};
static struct ar8327_platform_data wndr4300_ar8327_data = {