aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-06-06 19:03:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-06-06 19:03:30 +0000
commit0c4b6a0b07904d3b7da22bae02136e166b4a8a9c (patch)
tree486a08a67def3790a9057bdf9dbcfee7e8dacf87 /target/linux
parent227e69c0f4cf6b349be1c9624f04007cadfb8337 (diff)
downloadupstream-0c4b6a0b07904d3b7da22bae02136e166b4a8a9c.tar.gz
upstream-0c4b6a0b07904d3b7da22bae02136e166b4a8a9c.tar.bz2
upstream-0c4b6a0b07904d3b7da22bae02136e166b4a8a9c.zip
setup mac address on the AP81 board
SVN-Revision: 16366
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
index 54955047be..418631a3ba 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
@@ -116,6 +116,9 @@ static struct gpio_button ap81_gpio_buttons[] __initdata = {
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;