[ar71xx] setup mac address on the AP81 board
authorGabor Juhos <juhosg@openwrt.org>
Sat, 6 Jun 2009 19:03:30 +0000 (19:03 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 6 Jun 2009 19:03:30 +0000 (19:03 +0000)
SVN-Revision: 16366

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

index 54955047be341867ffda0a88934b44f7f52b2887..418631a3ba21f7ab57df62c36eb15e4002182867 100644 (file)
@@ -116,6 +116,9 @@ static struct gpio_button ap81_gpio_buttons[] __initdata = {
 
 static void __init ap81_setup(void)
 {
 
 static void __init ap81_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;
        ar71xx_add_device_mdio(0x0);
 
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;