mzk-w04nu: fetch MAC address from the flash
authorGabor Juhos <juhosg@openwrt.org>
Tue, 3 Feb 2009 07:53:46 +0000 (07:53 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 3 Feb 2009 07:53:46 +0000 (07:53 +0000)
SVN-Revision: 14383

target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c

index 37019ae4c22f832ed2484f0923ab74f51e3333a0..99ec6693ec2202a198e1c1fb8597ada3414dbb43 100644 (file)
@@ -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;