summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-18 09:01:44 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-18 09:01:44 +0000
commit71d0a7a7bff7cc52d319f2db0309628318abe0e5 (patch)
treece9c4f572b8569849badbca1ebfd0f204e20a286 /target/linux/ar71xx
parentc4838a0f9e4050942ddf6491f1229acffdd136b5 (diff)
downloadmtk-20170518-71d0a7a7bff7cc52d319f2db0309628318abe0e5.zip
mtk-20170518-71d0a7a7bff7cc52d319f2db0309628318abe0e5.tar.gz
mtk-20170518-71d0a7a7bff7cc52d319f2db0309628318abe0e5.tar.bz2
ar71xx: fix ethernet mac address on the WZR-HP-G300NH
SVN-Revision: 19216
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c4
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 5ffb816..eb1f814 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;