diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-01-18 09:01:44 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-01-18 09:01:44 +0000 |
commit | 12f0213084559002644b5ab002ec68aabe9f2dbe (patch) | |
tree | 9427c30a9d212c91a36dab7936f296cd91f88b29 /target/linux/ar71xx | |
parent | 0df42b5cd81e3f432e53941cf8c6fb487d0042ff (diff) | |
download | upstream-12f0213084559002644b5ab002ec68aabe9f2dbe.tar.gz upstream-12f0213084559002644b5ab002ec68aabe9f2dbe.tar.bz2 upstream-12f0213084559002644b5ab002ec68aabe9f2dbe.zip |
ar71xx: fix ethernet mac address on the WZR-HP-G300NH
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19216 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c index 5ffb816bfb..eb1f814d60 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c @@ -50,6 +50,8 @@ #define WZRHPG300NH_BUTTONS_POLL_INTERVAL 20 +#define WZRHPG300NH_MAC_OFFSET 0x20c + #ifdef CONFIG_MTD_PARTITIONS static struct mtd_partition wzrhpg300nh_flash_partitions[] = { { @@ -227,7 +229,7 @@ static void __init wzrhpg300nh_setup(void) { u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff1000); - ar71xx_set_mac_base(eeprom); + ar71xx_set_mac_base(eeprom + WZRHPG300NH_MAC_OFFSET); ar71xx_eth0_pll_data.pll_1000 = 0x1e000100; ar71xx_eth0_data.mii_bus_dev = &wzrhpg300nh_rtl8366_smi_device.dev; |