diff options
Diffstat (limited to 'target/linux/ar71xx/base-files')
6 files changed, 25 insertions, 3 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 85f104a5fd..1b308d7f77 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -218,10 +218,19 @@ cf-e375ac) cf-e355ac-v1|\ cf-e355ac-v2|\ cf-e380ac-v1|\ -cf-e380ac-v2) - ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" +cf-e380ac-v2|\ +cf-e385ac) ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:blue:wlan2g" "phy1tpt" ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:red:wlan5g" "phy0tpt" + + case "$board" in + cf-e385ac) + ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x04" + ;; + *) + ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth0" + ;; + esac ;; cf-e520n|\ cf-e530n) 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 0fe71e0760..434056a344 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-e385ac) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2" + ucidef_add_switch "switch0" \ + "0@eth0" "2:lan" "1:wan" "6@eth1" + ;; cpe210|\ cpe510|\ wbs210|\ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index facc77ee60..232e43b8dc 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -149,7 +149,8 @@ get_status_led() { status_led="$board:blue:wlan" ;; cf-e380ac-v1|\ - cf-e380ac-v2) + cf-e380ac-v2|\ + cf-e385ac) status_led="$board:blue:wlan2g" ;; cpe510) diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 3aa5e3c90f..a3d4867b0b 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -161,6 +161,9 @@ case "$FIRMWARE" in ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \ /lib/firmware/ath10k/QCA9888/hw2.0/board.bin ;; + cf-e385ac) + ath10kcal_extract "art" 20480 12064 + ;; esac ;; *) diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 842f1c5081..fc578cec65 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -531,6 +531,9 @@ ar71xx_board_detect() { *"CF-E380AC v2") name="cf-e380ac-v2" ;; + *"CF-E385AC") + name="cf-e385ac" + ;; *"CF-E520N") name="cf-e520n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index c408c7dfce..b080955359 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -213,6 +213,7 @@ platform_check_image() { cf-e375ac|\ cf-e380ac-v1|\ cf-e380ac-v2|\ + cf-e385ac|\ cf-e520n|\ cf-e530n|\ cpe505n|\ |