aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-06-14 11:38:26 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-06-14 11:38:26 +0000
commitc94dcb755e72606211b51a261e29372f502f2e94 (patch)
tree1a1b0896bf1358a0b597befbfb759d50641167ca /target/linux/ar71xx
parenta352413d200f648904545ea3074addf5dca5af28 (diff)
downloadupstream-c94dcb755e72606211b51a261e29372f502f2e94.tar.gz
upstream-c94dcb755e72606211b51a261e29372f502f2e94.tar.bz2
upstream-c94dcb755e72606211b51a261e29372f502f2e94.zip
setup mac address on the WNR2000
SVN-Revision: 16450
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
index 252856d2c9..d766fef711 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
@@ -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;