2
0
forked from Ivasoft/openwrt

ath79: add support for Ubiquiti UniFi AC-Pro

rework the dts to a common unifi-ac dtsi
pro network is connected via phy0 and has usb ports
lite network is connected via phy4 without usb ports

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
Lucian Cristian
2018-06-26 10:30:46 +03:00
committed by Mathias Kresin
parent 56fddc2577
commit 7dd3d7e1d3
6 changed files with 178 additions and 126 deletions

View File

@@ -98,6 +98,10 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "3:lan:1" "5:lan:2" "4:wan"
;;
"ubnt,unifiac-pro")
ucidef_add_switch "switch0" \
"0@eth0" "2:lan" "3:wan"
;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;

View File

@@ -95,7 +95,8 @@ case "$FIRMWARE" in
ath10kcal_extract "art" 20480 2116
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
;;
"ubnt,unifiac-lite")
"ubnt,unifiac-lite"|\
"ubnt,unifiac-pro")
ath10kcal_extract "EEPROM" 20480 2116
;;
esac