ramips: use generic board detection for D-Link DAP-1522 A1
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 6ad64e6727791377ff35c712a1836b41558a378d..4208321e69ccc25f0fbc966fb99d048c881f1d61 100755 (executable)
@@ -49,7 +49,6 @@ ramips_setup_interfaces()
        dcs-930l-b1|\
        ht-tm02|\
        linkits7688 | \
-       linkits7688d | \
        m2m|\
        microwrt|\
        mpr-a2|\
@@ -58,7 +57,8 @@ ramips_setup_interfaces()
        omega2p | \
        timecloud|\
        w150m|\
-       widora-neo|\
+       widora,neo-16m|\
+       widora,neo-32m|\
        wnce2001|\
        zbt-cpe102|\
        zte-q7)
@@ -72,6 +72,7 @@ ramips_setup_interfaces()
                ;;
        3g-6200n|\
        ai-br100|\
+       alfa-network,ac1200rm|\
        d240|\
        db-wrt01|\
        dir-300-b7|\
@@ -93,6 +94,7 @@ ramips_setup_interfaces()
        mt7628|\
        mzk-750dhp|\
        mzk-w300nh2|\
+       d-team,newifi-d2|\
        nixcore-x1-8M|\
        nixcore-x1-16M|\
        oy-0001|\
@@ -100,6 +102,7 @@ ramips_setup_interfaces()
        psg1208|\
        psg1218a|\
        r6220|\
+       rt-n12p|\
        sap-g3200u3|\
        sk-wb8|\
        u7621-06-256M-16M|\
@@ -110,11 +113,10 @@ ramips_setup_interfaces()
        wndr3700v5|\
        wt1520-4M|\
        wt1520-8M|\
-       y1|\
        youku-yk1|\
        zbt-ape522ii|\
        zbt-we1326|\
-       zbt-we3526|\
+       zbtlink,zbt-we3526|\
        zbt-we826-16M|\
        zbt-we826-32M|\
        zbt-wg2626|\
@@ -172,6 +174,9 @@ ramips_setup_interfaces()
        mzk-wdpr|\
        rb750gr3|\
        rt-n14u|\
+       tplink,c20-v4|\
+       tplink,c50-v3|\
+       tplink,tl-mr3420-v5|\
        tl-wr840n-v4|\
        tl-wr840n-v5|\
        tl-wr841n-v13|\
@@ -188,8 +193,8 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
-       c20|\
-       c50)
+       c50|\
+       tplink,c20-v1)
                ucidef_add_switch "switch0" \
                        "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0"
                ;;
@@ -201,6 +206,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "4:lan" "6@eth0"
                ;;
+       gb-pc2)
+               ucidef_add_switch "switch0" \
+                       "4:lan" "0:wan" "6@eth0"
+               ;;
        gl-mt300n-v2)
                ucidef_add_switch "switch0" \
                        "1:lan" "0:wan" "6@eth0"
@@ -233,6 +242,7 @@ ramips_setup_interfaces()
                ;;
        cs-qr10|\
        d105|\
+       dlink,dap-1522-a1|\
        dch-m225|\
        ex2700|\
        ex3700|\
@@ -313,6 +323,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
                ;;
+       vonets,var11n-300)
+               ucidef_add_switch "switch0" \
+                       "0:lan" "4:wan" "6@eth0"
+               ;;
        vocore2|\
        vocore2lite)
                ucidef_add_switch "switch0" \
@@ -342,6 +356,11 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "0:wan" "6@eth0"
                ;;
+       zbtlink,zbt-we1226|\
+       y1)
+               ucidef_add_switch "switch0" \
+                       "0:lan:2" "1:lan:1" "4:wan" "6@eth0"
+               ;;
        *)
                RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
                if [ -n "${RT3X5X}" ]; then
@@ -424,8 +443,7 @@ ramips_setup_macs()
        kng_rc)
                wan_mac=$(mtd_get_mac_binary factory 40)
                ;;
-       linkits7688 | \
-       linkits7688d)
+       linkits7688)
                wan_mac=$(mtd_get_mac_binary factory 4)
                lan_mac=$(mtd_get_mac_binary factory 46)
                ;;