[ar71xx] setup mac address on the WNR2000
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 14 Jun 2009 11:38:26 +0000 (11:38 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 14 Jun 2009 11:38:26 +0000 (11:38 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16450 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c

index 252856d2c97f0e7609721b8acf384dc9ed407d40..d766fef711e4f9012be39dfbbd36abe54d73f914 100644 (file)
@@ -127,6 +127,9 @@ static struct gpio_button wnr2000_gpio_buttons[] __initdata = {
 
 static void __init wnr2000_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;