aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorPiotr Dymacz <pepe2k@gmail.com>2018-02-18 22:49:10 +0100
committerPiotr Dymacz <pepe2k@gmail.com>2018-02-22 18:53:22 +0100
commit1b0e7a1453ad968cd866b9d206a588caabbbb835 (patch)
treef924b1e62f2f960b63bf974926da718734d0589a /target/linux/ar71xx/base-files
parent650a5e993b3b252da511e90706f3759d5ea68ce1 (diff)
downloadupstream-1b0e7a1453ad968cd866b9d206a588caabbbb835.tar.gz
upstream-1b0e7a1453ad968cd866b9d206a588caabbbb835.tar.bz2
upstream-1b0e7a1453ad968cd866b9d206a588caabbbb835.zip
ar71xx: fix COMFAST CF-E375AC support
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds7
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network10
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh1
3 files changed, 8 insertions, 10 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 1b308d7f77..2d0bf2cffa 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -210,13 +210,9 @@ cf-e320n-v2)
ucidef_set_led_netdev "wan" "WAN" "$board:red:wan" "eth1"
ucidef_set_led_wlan "wlan" "WLAN" "$board:blue:wlan" "phy0tpt"
;;
-cf-e375ac)
- ucidef_set_led_switch "wan" "WAN" "comfast:red:wan" "switch0" "0x02"
- ucidef_set_led_switch "lan" "LAN" "comfast:green:lan" "switch0" "0x04"
- ucidef_set_led_wlan "wlan1" "WLAN" "comfast:blue:wlan" "phy1tpt"
- ;;
cf-e355ac-v1|\
cf-e355ac-v2|\
+cf-e375ac|\
cf-e380ac-v1|\
cf-e380ac-v2|\
cf-e385ac)
@@ -224,6 +220,7 @@ cf-e385ac)
ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt"
case "$board" in
+ cf-e375ac|\
cf-e385ac)
ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04"
;;
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 434056a344..f4e113a814 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -266,6 +266,11 @@ ar71xx_setup_interfaces()
rme-eg200)
ucidef_set_interface_lan "eth0" "dhcp"
;;
+ cf-e375ac|\
+ rb-map-2nd)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:wan" "2:lan"
+ ;;
cf-e385ac)
ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
ucidef_add_switch "switch0" \
@@ -447,11 +452,6 @@ ar71xx_setup_interfaces()
ucidef_add_switch "switch1" \
"0@eth1" "1:lan:4" "2:lan:1" "3:lan:3" "4:lan:2" "5:wan"
;;
- cf-e375ac |\
- rb-map-2nd)
- ucidef_add_switch "switch0" \
- "0@eth0" "1:wan" "2:lan"
- ;;
rut900)
ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
ucidef_add_switch "switch0" \
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 232e43b8dc..bec14d4439 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -148,6 +148,7 @@ get_status_led() {
cf-e320n-v2)
status_led="$board:blue:wlan"
;;
+ cf-e375ac|\
cf-e380ac-v1|\
cf-e380ac-v2|\
cf-e385ac)