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.
This commit is contained in:
Adrian Chadd 2015-03-28 23:42:59 +00:00
parent 240b1f1dca
commit e133fa3e58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280800

View File

@ -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