lantiq: add support for TP-Link VR200v
[openwrt.git] / target / linux / lantiq / base-files / etc / board.d / 02_network
index 15b1f8c..8ed5259 100755 (executable)
@@ -96,6 +96,13 @@ TDW8970|TDW8980)
                "0:lan:1" "2:lan:2" "4:lan:3" "5:lan:4" "6t@eth0"
        ;;
 
+VR200v)
+       lan_mac=$(mtd_get_mac_binary romfile 61696)
+       wan_mac=$(macaddr_add "$lan_mac" 1)
+       ucidef_add_switch "switch0" \
+               "0:lan:1" "2:lan:2" "4:lan:3" "5:lan:4" "6t@eth0"
+       ;;
+
 ARV7519RW22)
        lan_mac=$(mtd_get_mac_binary boardconfig 22)
        wan_mac=$(macaddr_add "$lan_mac" 1)
@@ -135,7 +142,7 @@ if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
        ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
 fi
 
-if [ -n "$(grep "system type.*: VR9" /proc/cpuinfo)" ]; then
+if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
        interface_wan="ptm0"
        ucidef_add_vdsl_modem "$annex" "/lib/firmware/vdsl.bin" "av" "ptm"
 else