summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-04-05 22:00:44 +0000
committeradrian <adrian@FreeBSD.org>2015-04-05 22:00:44 +0000
commita0a73d3d2d77abb468bfe96eb0876590e730df7b (patch)
tree055e116400b9d66b52881a716063e428b0381ff9
parent1440f3812acc64522ec87433867df361e3e51439 (diff)
downloadFreeBSD-src-a0a73d3d2d77abb468bfe96eb0876590e730df7b.zip
FreeBSD-src-a0a73d3d2d77abb468bfe96eb0876590e730df7b.tar.gz
Convert the DIR-825C1 to use the new map based MAC address configuration.
Tested: * DIR-825C1
-rw-r--r--sys/mips/conf/DIR-825C1.hints28
1 files changed, 26 insertions, 2 deletions
diff --git a/sys/mips/conf/DIR-825C1.hints b/sys/mips/conf/DIR-825C1.hints
index 18ad6b8..7f19be6 100644
--- a/sys/mips/conf/DIR-825C1.hints
+++ b/sys/mips/conf/DIR-825C1.hints
@@ -1,13 +1,37 @@
# $FreeBSD$
-# This is a placeholder until the hardware support is complete.
-
# mdiobus0 on arge0
hint.argemdio.0.at="nexus0"
hint.argemdio.0.maddr=0x19000000
hint.argemdio.0.msize=0x1000
hint.argemdio.0.order=0
+# 0x1ffe0004 is the the "unit MAC".
+# 0x1ffe0018 is the second "MAC".
+# Right now this doesn't have any option for more than one
+# "unit MACs", so:
+# ath0: unit MAC
+# ath1: unit MAC + 1
+# arge0: unit MAC + 2
+# arge1: leave as default; not used.
+hint.ar71xx.0.eeprom_mac_addr=0x1ffe0004
+hint.ar71xx.0.eeprom_mac_isascii=1
+
+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
+
# DIR-825C1 GMAC configuration
# + AR934X_ETH_CFG_RGMII_GMAC0 (1 << 0)
# Onboard AR9344 10/100 switch is not wired up
OpenPOWER on IntegriCloud