summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-06 19:03:30 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-06-06 19:03:30 +0000
commit8ef1bac4865bc0cc314904c09518bb803b07038e (patch)
tree4cb4ce212dc7ca2a525bc889985d871fc7a78c1a /target/linux/ar71xx/files/arch
parent25ea87172b0b46fb7be1171d05b7929becd79a84 (diff)
[ar71xx] setup mac address on the AP81 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16366 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-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 54955047b..418631a3b 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;