ramips: fix lenovo newifi-y1 switch and LED config
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index db797c689d391f34def58befc82d2bc549346021..48fdfdf3f1007b6295f9843c2dd3041213df4d04 100755 (executable)
@@ -49,7 +49,6 @@ ramips_setup_interfaces()
        dcs-930l-b1|\
        ht-tm02|\
        linkits7688 | \
-       linkits7688d | \
        m2m|\
        microwrt|\
        mpr-a2|\
@@ -93,6 +92,7 @@ ramips_setup_interfaces()
        mt7628|\
        mzk-750dhp|\
        mzk-w300nh2|\
+       d-team,newifi-d2|\
        nixcore-x1-8M|\
        nixcore-x1-16M|\
        oy-0001|\
@@ -100,7 +100,7 @@ ramips_setup_interfaces()
        psg1208|\
        psg1218a|\
        r6220|\
-       rt-n12p)
+       rt-n12p|\
        sap-g3200u3|\
        sk-wb8|\
        u7621-06-256M-16M|\
@@ -111,11 +111,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|\
@@ -173,6 +172,7 @@ ramips_setup_interfaces()
        mzk-wdpr|\
        rb750gr3|\
        rt-n14u|\
+       tplink,tl-mr3420-v5|\
        tl-wr840n-v4|\
        tl-wr840n-v5|\
        tl-wr841n-v13|\
@@ -314,6 +314,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" \
@@ -343,6 +347,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "0:wan" "6@eth0"
                ;;
+       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
@@ -425,8 +433,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)
                ;;