ramips: add support for ZBT WE3526
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index df70a8b2ec8ff5f655eec99ae5ae35820b97400c..6ad64e6727791377ff35c712a1836b41558a378d 100755 (executable)
@@ -102,6 +102,7 @@ ramips_setup_interfaces()
        r6220|\
        sap-g3200u3|\
        sk-wb8|\
+       u7621-06-256M-16M|\
        vr500|\
        wf-2881|\
        witi|\
@@ -113,6 +114,7 @@ ramips_setup_interfaces()
        youku-yk1|\
        zbt-ape522ii|\
        zbt-we1326|\
+       zbt-we3526|\
        zbt-we826-16M|\
        zbt-we826-32M|\
        zbt-wg2626|\
@@ -124,7 +126,7 @@ ramips_setup_interfaces()
                ;;
        mir3g)
                ucidef_add_switch "switch0" \
-                       "1:wan" "2:lan:2" "3:lan:1" "6@eth0"
+                       "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
                ;;
        psg1218b)
                ucidef_add_switch "switch0" \
@@ -171,7 +173,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|\
@@ -184,6 +188,7 @@ 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"
@@ -217,6 +222,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"
@@ -235,6 +241,7 @@ ramips_setup_interfaces()
        mzk-ex750np|\
        na930|\
        pbr-d1|\
+       u25awf-h1|\
        wli-tx4-ag300n|\
        wmdr-143n|\
        wmr-300|\
@@ -322,7 +329,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"
                ;;
@@ -426,7 +434,7 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
        mir3g)
-               lan_mac=$(mtd_get_mac_binary Factory e006)
+               lan_mac=$(mtd_get_mac_binary Factory 0xe006)
                ;;
        miwifi-mini)
                wan_mac=$(cat /sys/class/net/eth0/address)