ath79: add suport for EnGenius EPG5000
[openwrt/staging/blogic.git] / target / linux / ath79 / base-files / etc / board.d / 02_network
index 9a7f2d6472b78b8a50f2e71e6a6db9c90f382205..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)
@@ -116,6 +120,10 @@ ath79_setup_interfaces()
                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"
@@ -262,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)
@@ -272,13 +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-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)
-               ;;
        nec,wg800hp)
                lan_mac=$(mtd_get_mac_text board_data 640)
                wan_mac=$(mtd_get_mac_text board_data 1152)