From e133fa3e58ec7354e055a40feacf8fb099edd282 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 28 Mar 2015 23:42:59 +0000 Subject: [PATCH] Add hints to set the board MAC address and derived values for each interface. This allows the TL-WDR3600 to use the correct MAC address for ath0, ath1 and arge0. arge1 isn't used; until I disable it entirely it'll just show up with a randomly generated MAC. --- sys/mips/conf/TL-WDR4300.hints | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/sys/mips/conf/TL-WDR4300.hints b/sys/mips/conf/TL-WDR4300.hints index a2848dae49cd..9912427ac78f 100644 --- a/sys/mips/conf/TL-WDR4300.hints +++ b/sys/mips/conf/TL-WDR4300.hints @@ -21,6 +21,29 @@ hint.argemdio.0.order=0 # + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0) hint.ar934x_gmac.0.gmac_cfg=0x1 +# Board mac address is at 0x1f01fc00. +# ath0: offset 0 +# ath1: offset -1 +# arge0: offset -2 +# arge1: not hooked up; doesn't matter +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=ath +hint.ar71xx_mac_map.1.unitid=1 +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=0 +hint.ar71xx_mac_map.2.offset=-2 +hint.ar71xx_mac_map.2.is_local=0 + # GMAC0 here - connected to an AR8327 hint.arswitch.0.at="mdio0" hint.arswitch.0.is_7240=0 @@ -63,9 +86,6 @@ hint.arge.0.fduplex=1 hint.arge.0.miimode=3 # RGMII hint.arge.0.pll_1000=0x06000000 -# MAC for arge0 is the first 6 bytes of the ART -hint.arge.0.eeprommac=0x1f01fc00 - # mdiobus1 on arge1 hint.argemdio.1.at="nexus0" hint.argemdio.1.maddr=0x1a000000