ath79: Add support for MOXA AWK-1137C
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 02_network
index d18eddf5b74ef0b8b25e5d62311ee3c65a79fe5b..64869701c6686d9caf37ac9658854963226f05aa 100644 (file)
@@ -240,7 +240,8 @@ ath79_setup_interfaces()
        ubnt,routerstation)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
-       comfast,cf-e375ac)
+       comfast,cf-e375ac|\
+       moxa,awk-1137c)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:wan" "2:lan"
                ;;
@@ -731,6 +732,11 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_encrypted_deco $(find_mtd_part config))
                label_mac=$lan_mac
                ;;
+       moxa,awk-1137c)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env mac_addr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env mac_addr)
+               label_mac=$lan_mac
+               ;;
        nec,wf1200cr|\
        nec,wg1200cr)
                lan_mac=$(mtd_get_mac_ascii devdata "lanmac")