[ar71xx] create firmware images for the Planex MZK-W04NU board
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-mzk-w04nu.c
index 37019ae4c22f832ed2484f0923ab74f51e3333a0..8af640ec7d0b4ce32dae94cc8b2b90b57e8fccb2 100644 (file)
@@ -45,22 +45,22 @@ static struct mtd_partition mzk_w04nu_partitions[] = {
                .offset         = 0x040000,
                .size           = 0x010000,
        } , {
-               .name           = "uImage",
+               .name           = "kernel",
                .offset         = 0x050000,
                .size           = 0x160000,
        } , {
                .name           = "rootfs",
                .offset         = 0x1b0000,
-               .size           = 0x610000,
-       } , {
-               .name           = "config",
-               .offset         = 0x7c0000,
-               .size           = 0x020000,
+               .size           = 0x630000,
        } , {
                .name           = "art",
                .offset         = 0x7e0000,
                .size           = 0x020000,
                .mask_flags     = MTD_WRITEABLE,
+       } , {
+               .name           = "firmware",
+               .offset         = 0x050000,
+               .size           = 0x770000,
        }
 };
 #endif /* CONFIG_MTD_PARTITIONS */
@@ -137,6 +137,10 @@ static struct gpio_button mzk_w04nu_gpio_buttons[] __initdata = {
 
 static void __init mzk_w04nu_setup(void)
 {
+       u8 *mac = (u8 *) KSEG1ADDR(0x1fff1000);
+
+       ar71xx_set_mac_base(mac);
+
        ar71xx_add_device_mdio(0x0);
 
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;