ar71xx: Add eTactica EG-200 support
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 02_network
index 876eeaba61c389c5a32fe552ad79f7094c496929..f131b3b633e68f92cfc84adbec0714f45025efe9 100755 (executable)
@@ -64,6 +64,7 @@ ar71xx_setup_interfaces()
        antminer-s3|\
        antrouter-r1|\
        ap121f|\
+       ap91-5g|\
        aw-nr580|\
        bullet-m|\
        c-55|\
@@ -92,16 +93,21 @@ ar71xx_setup_interfaces()
        pqi-air-pen|\
        rb-411|\
        rb-411u|\
+       rb-911-2hn|\
+       rb-911-5hn|\
        rb-911g-2hpnd|\
        rb-911g-5hpacd|\
        rb-911g-5hpnd|\
        rb-912uag-2hpnd|\
        rb-912uag-5hpnd|\
+       rb-921gs-5hpacd-r2|\
        rb-lhg-5nd|\
        rb-mapl-2nd|\
        rb-sxt2n|\
        rb-sxt5n|\
        rb-wap-2nd|\
+       rb-wapg-5hact2hnd|\
+       re355|\
        re450|\
        rocket-m-xw|\
        sc300m |\
@@ -154,7 +160,6 @@ ar71xx_setup_interfaces()
        pb42|\
        pb44|\
        rb-951ui-2hnd|\
-       rb-951ui-2nd|\
        rb-952ui-5ac2nd|\
        routerstation|\
        tl-wr710n|\
@@ -167,7 +172,8 @@ ar71xx_setup_interfaces()
                ;;
        rb-750-r2|\
        rb-750p-pbr2|\
-       rb-750up-r2)
+       rb-750up-r2|\
+       rb-951ui-2nd)
                ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
@@ -176,6 +182,7 @@ ar71xx_setup_interfaces()
        all0315n|\
        dlan-hotspot|\
        dlan-pro-500-wp|\
+       ens202ext|\
        ja76pf2|\
        rocket-m-ti|\
        ubnt-unifi-outdoor)
@@ -255,7 +262,8 @@ ar71xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "3:wan" "4:lan"
                ;;
-       cap324)
+       cap324|\
+       rme-eg200)
                ucidef_set_interface_lan "eth0" "dhcp"
                ;;
        cpe210|\
@@ -277,7 +285,8 @@ ar71xx_setup_interfaces()
        dir-835-a1|\
        esr900|\
        mynet-n750|\
-       sr3200)
+       sr3200|\
+       tl-wr1043n-v5)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
                ;;
@@ -365,6 +374,12 @@ ar71xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
+       ew-balin)
+# usb0 is RNDIS interface over USB in device mode
+               ucidef_set_interface_raw "usb2" "usb0" "static"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "5:lan:4" "4:lan:5" "3:wan"
+               ;;
        ew-dorin)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:wan"
@@ -386,6 +401,12 @@ ar71xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
                ;;
+       gl-ar750|\
+       rb-435g)
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan" "2:lan"
+               ;;
        jwap230)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
                ucidef_add_switch "switch0" \
@@ -398,11 +419,6 @@ ar71xx_setup_interfaces()
        onion-omega)
                ucidef_set_interface_lan "wlan0"
                ;;
-       rb-435g)
-               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
-               ucidef_add_switch "switch0" \
-                       "0@eth1" "1:lan" "2:lan"
-               ;;
        rb-450)
                ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \
@@ -416,14 +432,20 @@ ar71xx_setup_interfaces()
        rb-493g)
                ucidef_set_interfaces_lan_wan "eth0.1 eth1.1" "eth1.2"
                ucidef_add_switch "switch0" \
-                       "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan"
+                       "0@eth0" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
                ucidef_add_switch "switch1" \
-                       "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+                       "0@eth1" "1:lan:4" "2:lan:1" "3:lan:3" "4:lan:2" "5:wan"
                ;;
+       cf-e375ac |\
        rb-map-2nd)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:wan" "2:lan"
                ;;
+       rut900)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        tellstick-znet-lite)
                ucidef_set_interface_wan "eth0"
                ucidef_set_interface_raw "wlan" "wlan0" "dhcp"
@@ -542,6 +564,7 @@ ar71xx_setup_macs()
        fritz300e)
                lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                ;;
+       tl-wr1043n-v5|\
        tl-wr1043nd-v4)
                lan_mac=$(mtd_get_mac_binary product-info 8)
                wan_mac=$(macaddr_add "$lan_mac" 1)
@@ -553,6 +576,10 @@ ar71xx_setup_macs()
        mynet-n750)
                wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
                ;;
+       wlr8100)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env "ethaddr")
+               wan_mac=$(mtd_get_mac_ascii u-boot-env "wanaddr")
+               ;;
        wpj344|\
        wpj558)
                wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)