ath79: Add support for OpenMesh A40
[openwrt/staging/hauke.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index 52e773fea3cac1993b0a0e292bf30e8c8d3205ae..87aaf0bcad333bd70e33e36933c9080247866664 100644 (file)
@@ -170,6 +170,8 @@ ath79_setup_interfaces()
        comfast,cf-e120a-v3|\
        comfast,cf-e314n-v2|\
        compex,wpj531-16m|\
+       openmesh,a40|\
+       openmesh,a60|\
        openmesh,om2p-v4|\
        openmesh,om2p-hs-v4|\
        plasmacloud,pa300|\
@@ -186,6 +188,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 +493,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)