From 34a3c98143e6f347474db21ab5ead9b21ff3052c Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 1 Apr 2015 06:44:39 +0000 Subject: [PATCH] Migrate the TL-WR1043nd v2 to use the new map based MAC hints mechanism. This programs separate, correct mac addresses for the ethernet and wlan interfaces. --- sys/mips/conf/TL-WR1043NDv2.hints | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/sys/mips/conf/TL-WR1043NDv2.hints b/sys/mips/conf/TL-WR1043NDv2.hints index b7e283118f32..a5b158a129d7 100644 --- a/sys/mips/conf/TL-WR1043NDv2.hints +++ b/sys/mips/conf/TL-WR1043NDv2.hints @@ -6,6 +6,25 @@ # QCA955X_ETH_CFG_RGMII_EN (1 << 0) hint.qca955x_gmac.0.gmac_cfg=0x1 +# Use base mac address for wifi; +1 and +2 for arge0/arge1. +hint.ar71xx.0.eeprom_mac_addr=0x1f01fc00 +hint.ar71xx.0.eeprom_mac_isascii=0 + +hint.ar71xx_mac_map.0.devid=ath +hint.ar71xx_mac_map.0.unitid=0 +hint.ar71xx_mac_map.0.offset=0 +hint.ar71xx_mac_map.0.is_local=0 + +hint.ar71xx_mac_map.1.devid=arge +hint.ar71xx_mac_map.1.unitid=0 +hint.ar71xx_mac_map.1.offset=1 +hint.ar71xx_mac_map.1.is_local=0 + +hint.ar71xx_mac_map.2.devid=arge +hint.ar71xx_mac_map.2.unitid=1 +hint.ar71xx_mac_map.2.offset=2 +hint.ar71xx_mac_map.2.is_local=0 + # mdiobus0 on arge0 hint.argemdio.0.at="nexus0" hint.argemdio.0.maddr=0x19000000 @@ -89,8 +108,6 @@ hint.arge.0.media=1000 hint.arge.0.fduplex=1 hint.arge.0.pll_1000=0x56000000 -hint.arge.0.eeprommac=0x1f01fc00 - # arge1 - lock up to 1000/full hint.arge.1.phymask=0x0 hint.arge.1.media=1000