ar71xx: add support for RB LHG 5nD
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 02_network
index 92c2af7978ca7fb8f3656a1932b44e66625163fe..20b34e89652da3f3ce2d5883942b95875e5a886f 100755 (executable)
@@ -90,6 +90,8 @@ ar71xx_setup_interfaces()
        rb-911g-5hpnd|\
        rb-912uag-2hpnd|\
        rb-912uag-5hpnd|\
+       rb-lhg-5nd|\
+       rb-mapl-2nd|\
        rb-sxt2n|\
        rb-sxt5n|\
        re450|\
@@ -108,18 +110,21 @@ ar71xx_setup_interfaces()
        tl-wa801nd-v2|\
        tl-wa830re-v2|\
        tl-wa850re|\
+       tl-wa850re-v2|\
        tl-wa901nd|\
        tl-wa901nd-v2|\
        tl-wa901nd-v3|\
        tl-wa901nd-v4|\
        tl-wr703n|\
        tl-wr802n-v1|\
+       tl-wr802n-v2|\
        tube2h|\
        unifiac-lite|\
        wndap360|\
        wp543)
                ucidef_set_interface_lan "eth0"
                ;;
+       a40|\
        a60|\
        alfa-ap96|\
        alfa-nx|\
@@ -133,7 +138,10 @@ ar71xx_setup_interfaces()
        om2p-hsv4|\
        pb42|\
        pb44|\
+       rb-750-r2|\
+       rb-750up-r2|\
        rb-951ui-2hnd|\
+       rb-951ui-2nd|\
        routerstation|\
        tl-wr710n|\
        tl-wr720n-v3|\
@@ -200,9 +208,15 @@ ar71xx_setup_interfaces()
                        "0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
                ;;
        archer-c59-v1|\
+       rb-450g)
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
+               ;;
        archer-c60-v1)
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \
-                       "0@eth0" "2:lan:4" "3:lan:3" "4:lan:2" "5:lan:1" "1:wan"
+                       "0@eth1" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
                ;;
        arduino-yun|\
        dir-505-a1|\
@@ -241,8 +255,7 @@ ar71xx_setup_interfaces()
        esr900|\
        mynet-n750|\
        sr3200|\
-       wndr3700v4|\
-       wndr4300)
+       wndr3700v4)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
                ;;
@@ -292,7 +305,7 @@ ar71xx_setup_interfaces()
        wpn824n)
                ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \
-                       "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4@eth1"
+                       "0@eth1" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
                ;;
        dir-825-b1|\
        nbg460n_550n_550nh|\
@@ -308,6 +321,11 @@ ar71xx_setup_interfaces()
                        "0u@eth0" "2:lan" "3:lan" "4:lan"
                ucidef_add_switch_attr "switch0" "enable" "false"
                ;;
+       ebr-2310-c1)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4"
+               ;;
        el-m150)
                ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \
@@ -316,7 +334,8 @@ ar71xx_setup_interfaces()
        dir-869-a1|\
        epg5000|\
        esr1750|\
-       tl-wr1043nd-v4)
+       tl-wr1043nd-v4|\
+       wndr4300)
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
@@ -363,11 +382,6 @@ ar71xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth1"
                ;;
-       rb-450g)
-               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
-               ucidef_add_switch "switch0" \
-                       "0@eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
-               ;;
        routerstation-pro)
                ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
                ucidef_add_switch "switch0" \