ramips: Add support for Wavlink WL-WN575A3
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 675dcc98323ea82aa9632ec0fddb624714697013..ecdae638f5c4e7ae6bd5d27d9f41fd21ca7ab8f0 100755 (executable)
@@ -24,8 +24,7 @@ ramips_setup_rt3x5x_vlans()
                        lanports="$port:lan $lanports"
                fi
        done
-       ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
-       ucidef_add_switch "rt305x" $lanports $wanports "6@eth0"
+       ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
 }
 
 ramips_setup_interfaces()
@@ -53,12 +52,12 @@ ramips_setup_interfaces()
        w150m|\
        widora-neo|\
        wnce2001|\
+       zbt-cpe102|\
        zte-q7)
                ucidef_add_switch "switch0"
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
-       3g-6200nl|\
        mlw221|\
        mr-102n)
                ucidef_set_interface_lan "eth0.2"
@@ -83,12 +82,15 @@ ramips_setup_interfaces()
        oy-0001|\
        pbr-m1|\
        psg1208|\
+       psg1218|\
        sap-g3200u3|\
        sk-wb8|\
+       vr500|\
        wf-2881|\
        whr-300hp2|\
        whr-600d|\
        witi|\
+       wl-wn575a3|\
        wndr3700v5|\
        wsr-1166|\
        wsr-600|\
@@ -133,6 +135,7 @@ ramips_setup_interfaces()
        jhr-n825r|\
        jhr-n926r|\
        mzk-wdpr|\
+       rb750gr3|\
        rt-n14u|\
        ubnt-erx|\
        ur-326n4g|\
@@ -177,6 +180,7 @@ ramips_setup_interfaces()
        mzk-ex300np|\
        mzk-ex750np|\
        na930|\
+       pbr-d1|\
        wli-tx4-ag300n|\
        wmr-300|\
        wrh-300cr)
@@ -206,6 +210,13 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "4:lan" "6t@eth0"
                ;;
+       newifi-d1)
+               ucidef_set_interface_lan_wan "eth0.1" "eth0.2"
+               ucidef_add_switch "switch0" \
+                       "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6t@eth0" "7t@eth0"
+               ucidef_add_switch "switch1" \
+                       "4:lan" "6t@eth0" "7t@eth0"
+               ;;
        rt-n56u)
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
@@ -320,6 +331,10 @@ ramips_setup_macs()
                lan_mac=$(cat /sys/class/net/eth0/address)
                lan_mac=$(macaddr_add "$lan_mac" -2)
                ;;
+       newifi-d1)
+               lan_mac=$(cat /sys/class/net/eth0/address)
+               lan_mac=$(macaddr_add "$lan_mac" 2)
+               ;;
        oy-0001)
                lan_mac=$(mtd_get_mac_binary factory 40)
                wan_mac=$(mtd_get_mac_binary factory 46)
@@ -342,6 +357,10 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR)
                wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR)
                ;;
+       vr500)
+               lan_mac=$(mtd_get_mac_binary factory 57344)
+               wan_mac=$(mtd_get_mac_binary factory 57350)
+               ;;
        w306r-v20)
                lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 5)