diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-02 08:47:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-02 08:47:41 +0000 |
commit | 45fd50fa0e8ada501c94fdcc7fe770602e2b796c (patch) | |
tree | df46e7a0aa2c4725984bb5d74e2cc6b7274fdbd7 /target | |
parent | af7b361da655c90aee1c52b94304c752ce57c015 (diff) | |
download | upstream-45fd50fa0e8ada501c94fdcc7fe770602e2b796c.tar.gz upstream-45fd50fa0e8ada501c94fdcc7fe770602e2b796c.tar.bz2 upstream-45fd50fa0e8ada501c94fdcc7fe770602e2b796c.zip |
ar71xx: fix mac address calculation on the OpenMesh MR600
Signed-off-by: Marek Lindner <marek@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-mr600.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr600.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr600.c index 8e3f6dac51..496956446b 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr600.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr600.c @@ -140,10 +140,10 @@ static void __init mr600_base_setup(unsigned num_leds, struct gpio_led *leds) ARRAY_SIZE(mr600_gpio_keys), mr600_gpio_keys); - ath79_init_mac(mac, art + MR600_MAC_OFFSET, -1); + ath79_init_mac(mac, art + MR600_MAC_OFFSET, 1); ath79_register_wmac(art + MR600_WMAC_CALDATA_OFFSET, mac); - ath79_init_mac(mac, art + MR600_MAC_OFFSET, -2); + ath79_init_mac(mac, art + MR600_MAC_OFFSET, 8); ap91_pci_init(art + MR600_PCIE_CALDATA_OFFSET, mac); ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 | @@ -151,7 +151,7 @@ static void __init mr600_base_setup(unsigned num_leds, struct gpio_led *leds) ath79_register_mdio(0, 0x0); - ath79_init_mac(ath79_eth0_data.mac_addr, art + MR600_MAC_OFFSET, -2); + ath79_init_mac(ath79_eth0_data.mac_addr, art + MR600_MAC_OFFSET, 0); /* GMAC0 is connected to an external PHY */ ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; |