From dbf107cd2b83f0017446ac5ae07e44b39ed61bfe Mon Sep 17 00:00:00 2001
From: "P.Wassi"
Date: Tue, 26 Jul 2016 06:44:19 +0200
Subject: ramips: Improve TP-Link Archer C20i support
Improve / finalise TP-Link Archer C20i support.
Signed-off-by: P.Wassi
---
target/linux/ramips/base-files/etc/board.d/01_leds | 6 ++++++
target/linux/ramips/base-files/etc/board.d/02_network | 1 +
2 files changed, 7 insertions(+)
(limited to 'target/linux/ramips/base-files')
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index fc69f33600..e5f646b4c1 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -78,6 +78,12 @@ broadway)
set_usb_led "$board:red:diskmounted"
set_wifi_led "$board:red:wps_active"
;;
+c20i)
+ ucidef_set_led_switch "lan" "lan" "$board:blue:lan" "switch0" "0x1e"
+ ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x01"
+ set_usb_led "$board:blue:usb" "2-1"
+ ucidef_set_led_wlan "wlan" "wlan" "$board:blue:wlan" "phy0radio"
+ ;;
c50)
ucidef_set_led_default "power" "power" "tp-link:blue:power" "0"
ucidef_set_led_netdev "lan" "lan" "tp-link:blue:lan" "eth0.2"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index c1c5f81ebe..a404af9fbc 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -114,6 +114,7 @@ ramips_setup_interfaces()
atp-52b|\
awm002-evb|\
awm003-evb|\
+ c20i|\
c50|\
dir-645|\
dir-860l-b1|\
--
cgit v1.2.3