diff options
Diffstat (limited to 'target/linux/ath79/generic/base-files/etc/board.d')
-rw-r--r-- | target/linux/ath79/generic/base-files/etc/board.d/01_leds | 4 | ||||
-rw-r--r-- | target/linux/ath79/generic/base-files/etc/board.d/02_network | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds index 783b55ec32..827055bc1f 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds @@ -132,6 +132,10 @@ comfast,cf-e314n-v2) ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100" ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100" ;; +comfast,cf-e375ac) + ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04" + ucidef_set_led_switch "wan" "WAN" "red:wan" "switch0" "0x02" + ;; comfast,cf-e5) ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02" ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1" diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network index 52e773fea3..4133b9d7d3 100644 --- a/target/linux/ath79/generic/base-files/etc/board.d/02_network +++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network @@ -186,6 +186,10 @@ ath79_setup_interfaces() ubnt,routerstation) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; + comfast,cf-e375ac) + ucidef_add_switch "switch0" \ + "0@eth0" "1:wan" "2:lan" + ;; comfast,cf-e560ac) ucidef_set_interface_wan "eth1" ucidef_add_switch "switch0" \ @@ -487,6 +491,9 @@ ath79_setup_macs() lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)")) ;; + comfast,cf-e375ac) + wan_mac=$(macaddr_add $(mtd_get_mac_binary art 0x0) 1) + ;; compex,wpj344-16m|\ compex,wpj563) wan_mac=$(mtd_get_mac_binary u-boot 0x2e018) |