ramips: add support for Planex MZK-DP150N
[openwrt/staging/chunkeey.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index bc1fc0191cec55b5ad69a402ed36be1d3e5e35f2..f896afafeee30971aa3a241cc46f3c79495a7d2b 100755 (executable)
@@ -139,6 +139,7 @@ ramips_setup_interfaces()
        mzk-750dhp | \
        whr-300hp2 | \
        whr-600d | \
+       oy-0001 | \
        wsr-600 | \
        wsr-1166 | \
        wt1520 | \
@@ -260,6 +261,13 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t"
                ucidef_add_switch_vlan "switch0" "2" "0 5t"
                ;;
+
+       mzk-dp150n)
+               ucidef_set_interface_lan "eth0.1"
+               ucidef_add_switch "switch0" "1" "1"
+               ucidef_add_switch_vlan "switch0" "1" "0 4 6t"
+               ;;
+
        *)
                RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
                if [ -n "${RT3X5X}" ]; then
@@ -283,6 +291,11 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_binary devdata 7)
                ;;
 
+       oy-0001)
+               lan_mac=$(mtd_get_mac_binary factory 40)
+               wan_mac=$(mtd_get_mac_binary factory 46)
+               ;;
+
        w306r-v20)
                lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 5)