ath79: add suport for EnGenius EPG5000
[openwrt/staging/blogic.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index a63939670e71f69dc7eade4b4298ce3ba9d641cc..e2c303e56572743c21136fca9baa5a6f98201290 100755 (executable)
@@ -13,11 +13,13 @@ ath79_setup_interfaces()
        devolo,dvl1200i|\
        devolo,dvl1750c|\
        devolo,dvl1750i|\
+       glinet,ar300m-lite|\
        ocedo,koala|\
        ocedo,raccoon|\
        pcs,cap324|\
        pisen,wmm003n|\
        pqi,air-pen|\
+       tplink,re350k-v1|\
        tplink,re450-v2|\
        tplink,tl-mr10u|\
        tplink,tl-mr3020-v1|\
@@ -74,6 +76,7 @@ ath79_setup_interfaces()
        dlink,dir-825-c1|\
        dlink,dir-835-a1|\
        dlink,dir-859-a1|\
+       engenius,epg5000|\
        tplink,archer-c2-v3|\
        tplink,tl-wr1043nd-v4)
                ucidef_add_switch "switch0" \
@@ -100,7 +103,8 @@ ath79_setup_interfaces()
        glinet,gl-x750|\
        tplink,tl-wr810n-v1|\
        tplink,tl-wr810n-v2|\
-       ubnt,routerstation)
+       ubnt,routerstation|\
+       yuncore,a770)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
        glinet,gl-ar750s)
@@ -109,12 +113,17 @@ ath79_setup_interfaces()
                ;;
        iodata,etg3-r|\
        iodata,wn-ac1167dgr|\
+       iodata,wn-ac1600dgr|\
        iodata,wn-ac1600dgr2|\
        iodata,wn-ag300dgr|\
        pcs,cr5000)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
        ;;
+       librerouter,librerouter-v1)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "5:wan" "6@eth1" "4:lan"
+       ;;
        nec,wg800hp)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
@@ -145,6 +154,7 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:wan"
                ;;
+       tplink,archer-c5-v1|\
        tplink,archer-c7-v1|\
        tplink,archer-c7-v2|\
        tplink,tl-wdr4900-v2)
@@ -210,6 +220,10 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
+       ubnt,nanostation-m-xw)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "5:lan" "1:wan"
+               ;;
        ubnt,nanostation-ac|\
        ubnt,unifiac-mesh-pro|\
        ubnt,unifiac-pro)
@@ -256,6 +270,14 @@ ath79_setup_macs()
        elecom,wrc-300ghbk2-i)
                wan_mac=$(macaddr_add "$(mtd_get_mac_binary ART 4098)" -2)
                ;;
+       engenius,epg5000|\
+       iodata,wn-ac1167dgr|\
+       iodata,wn-ac1600dgr|\
+       iodata,wn-ac1600dgr2|\
+       iodata,wn-ag300dgr)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+               ;;
        engenius,ews511ap)
                lan_mac=$(mtd_get_mac_text "u-boot-env" 233)
                eth1_mac=$(macaddr_add "$lan_mac" 1)
@@ -266,12 +288,6 @@ ath79_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
                wan_mac=$(macaddr_add "$lan_mac" -1)
                ;;
-       iodata,wn-ac1167dgr|\
-       iodata,wn-ac1600dgr2|\
-       iodata,wn-ag300dgr)
-               lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
-               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
-               ;;
        nec,wg800hp)
                lan_mac=$(mtd_get_mac_text board_data 640)
                wan_mac=$(mtd_get_mac_text board_data 1152)