ramips: add support for Asus RT-N11P / RT-N12+ / RT-N12E b1
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index ee769b5a0f32e0c4fae6305952f7fda5f3c7f7bf..db797c689d391f34def58befc82d2bc549346021 100755 (executable)
@@ -100,8 +100,10 @@ ramips_setup_interfaces()
        psg1208|\
        psg1218a|\
        r6220|\
+       rt-n12p)
        sap-g3200u3|\
        sk-wb8|\
+       u7621-06-256M-16M|\
        vr500|\
        wf-2881|\
        witi|\
@@ -113,6 +115,7 @@ ramips_setup_interfaces()
        youku-yk1|\
        zbt-ape522ii|\
        zbt-we1326|\
+       zbt-we3526|\
        zbt-we826-16M|\
        zbt-we826-32M|\
        zbt-wg2626|\
@@ -122,6 +125,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
                ;;
+       mir3g)
+               ucidef_add_switch "switch0" \
+                       "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
+               ;;
        psg1218b)
                ucidef_add_switch "switch0" \
                        "0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@eth0"
@@ -153,9 +160,7 @@ ramips_setup_interfaces()
        atp-52b|\
        awm002-evb-4M|\
        awm002-evb-8M|\
-       awm003-evb|\
        c20i|\
-       c50|\
        dir-645|\
        f5d8235-v2|\
        gl-mt300a|\
@@ -169,7 +174,9 @@ ramips_setup_interfaces()
        rb750gr3|\
        rt-n14u|\
        tl-wr840n-v4|\
+       tl-wr840n-v5|\
        tl-wr841n-v13|\
+       u7628-01-128M-16M|\
        ubnt-erx|\
        ubnt-erx-sfp|\
        ur-326n4g|\
@@ -182,6 +189,11 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
+       c20|\
+       c50)
+               ucidef_add_switch "switch0" \
+                       "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0"
+               ;;
        dir-860l-b1)
                ucidef_add_switch "switch0" \
                        "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
@@ -211,6 +223,7 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0"
                ;;
+       c108|\
        cf-wr800n)
                ucidef_add_switch "switch0" \
                        "4:lan" "6t@eth0"
@@ -229,7 +242,9 @@ ramips_setup_interfaces()
        mzk-ex750np|\
        na930|\
        pbr-d1|\
+       u25awf-h1|\
        wli-tx4-ag300n|\
+       wmdr-143n|\
        wmr-300|\
        wn3000rpv3|\
        wrh-300cr)
@@ -299,7 +314,8 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
                ;;
-       vocore2)
+       vocore2|\
+       vocore2lite)
                ucidef_add_switch "switch0" \
                        "0:lan" "2:lan" "6t@eth0"
                ;;
@@ -314,7 +330,8 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "3:lan" "4:wan" "6@eth0"
                ;;
-       wcr-150gn)
+       wcr-150gn|\
+       we1026-5g-16m)
                ucidef_add_switch "switch0" \
                        "0:lan" "6t@eth0"
                ;;
@@ -345,7 +362,8 @@ ramips_setup_macs()
 
        case $board in
        a5-v11|\
-       ht-tm02)
+       ht-tm02|\
+       wmdr-143n)
                lan_mac=$(cat /sys/class/net/eth0/address)
                ;;
        all0239-3g|\
@@ -416,6 +434,9 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_binary factory_info 13)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
+       mir3g)
+               lan_mac=$(mtd_get_mac_binary Factory 0xe006)
+               ;;
        miwifi-mini)
                wan_mac=$(cat /sys/class/net/eth0/address)
                lan_mac=$(macaddr_setbit_la "$wan_mac")