ramips: Add support for Wavlink WL-WN575A3
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 7eab5f286a1aee4a6efa6c39dfbeea24a052a57b..ecdae638f5c4e7ae6bd5d27d9f41fd21ca7ab8f0 100755 (executable)
@@ -24,7 +24,7 @@ ramips_setup_rt3x5x_vlans()
                        lanports="$port:lan $lanports"
                fi
        done
-       ucidef_add_switch "rt305x" $lanports $wanports "6@eth0"
+       ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
 }
 
 ramips_setup_interfaces()
@@ -58,7 +58,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
-       3g-6200nl|\
        mlw221|\
        mr-102n)
                ucidef_set_interface_lan "eth0.2"
@@ -86,10 +85,12 @@ ramips_setup_interfaces()
        psg1218|\
        sap-g3200u3|\
        sk-wb8|\
+       vr500|\
        wf-2881|\
        whr-300hp2|\
        whr-600d|\
        witi|\
+       wl-wn575a3|\
        wndr3700v5|\
        wsr-1166|\
        wsr-600|\
@@ -134,6 +135,7 @@ ramips_setup_interfaces()
        jhr-n825r|\
        jhr-n926r|\
        mzk-wdpr|\
+       rb750gr3|\
        rt-n14u|\
        ubnt-erx|\
        ur-326n4g|\
@@ -355,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)