mzk-w04nu: enable the ar8216 chip workaround, and add a default network configuration...
authorGabor Juhos <juhosg@openwrt.org>
Wed, 25 Feb 2009 16:48:56 +0000 (16:48 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 25 Feb 2009 16:48:56 +0000 (16:48 +0000)
SVN-Revision: 14656

target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network [new file with mode: 0644]
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c

diff --git a/target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network b/target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network
new file mode 100644 (file)
index 0000000..2d4d8e0
--- /dev/null
@@ -0,0 +1,16 @@
+config interface loopback
+       option ifname   lo
+       option proto    static
+       option ipaddr   127.0.0.1
+       option netmask  255.0.0.0
+
+config interface lan
+       option ifname   eth0
+       option type     bridge
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   eth1
+       option proto    dhcp
index acce733ebe8b0e8164b6497d0e9250dadf56b154..3a149020247dba0a7d795b93f65bfe08ab8c87e7 100644 (file)
@@ -148,6 +148,7 @@ static void __init mzk_w04nu_setup(void)
        ar71xx_eth0_data.phy_mask = 0xf;
        ar71xx_eth0_data.speed = SPEED_100;
        ar71xx_eth0_data.duplex = DUPLEX_FULL;
+       ar71xx_eth0_data.has_ar8216 = 1;
 
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth1_data.phy_mask = 0x10;