summaryrefslogtreecommitdiffstats
path: root/sys/mips/conf
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-05-19 20:11:18 +0000
committeradrian <adrian@FreeBSD.org>2012-05-19 20:11:18 +0000
commit48e46cfd2384a03ced9643ea99e63e62ed7e8375 (patch)
treeca67f5d63ebccf9d2b3edf69658322dc28bf6a0b /sys/mips/conf
parent6be3c8be38f93e06797acce54d040137e409ea37 (diff)
downloadFreeBSD-src-48e46cfd2384a03ced9643ea99e63e62ed7e8375.zip
FreeBSD-src-48e46cfd2384a03ced9643ea99e63e62ed7e8375.tar.gz
Enable the AR8316 switch on the routerstation pro board.
The configuration is: * RGMII, both ports * arge0 - connected to PHY4 as a dedicated port (CPU port) * arge1 - connected to the switch ports I've verified this on my routerstation pro board.
Diffstat (limited to 'sys/mips/conf')
-rw-r--r--sys/mips/conf/RSPRO6
-rw-r--r--sys/mips/conf/RSPRO.hints25
2 files changed, 27 insertions, 4 deletions
diff --git a/sys/mips/conf/RSPRO b/sys/mips/conf/RSPRO
index 8684f07..5374b36 100644
--- a/sys/mips/conf/RSPRO
+++ b/sys/mips/conf/RSPRO
@@ -21,6 +21,12 @@ options GEOM_PART_BSD
options GEOM_PART_MBR
options MSDOSFS
+# For etherswitch support
+options ARGE_MDIO
+device miiproxy
+device etherswitch
+device arswitch
+
# Boot off of flash
options ROOTDEVNAME=\"ufs:redboot/rootfs.uzip\"
diff --git a/sys/mips/conf/RSPRO.hints b/sys/mips/conf/RSPRO.hints
index 68edb28..3be5d13 100644
--- a/sys/mips/conf/RSPRO.hints
+++ b/sys/mips/conf/RSPRO.hints
@@ -1,10 +1,27 @@
# $FreeBSD$
-hint.arge.0.phymask=0x10
+# arge0 mdio bus
+hint.argemdio.0.at="nexus0"
+hint.argemdio.0.maddr=0x19000000
+hint.argemdio.0.msize=0x1000
+hint.argemdio.0.order=0
-hint.arge.1.media=1000
-hint.arge.1.fduplex=1
-hint.arge.1.phymask=0x0e
+# arge0: dedicated switch port
+hint.arge.0.phymask=0x10 # PHY4
+hint.arge.0.miimode=3 # RGMII
+hint.arge.0.mdio=mdioproxy1 # .. off of the switch mdiobus
+
+# arge1: nail to 1000/full, RGMII - connected to the switch
+hint.arge.1.media=1000 # Map to 1000/full
+hint.arge.1.fduplex=1 #
+hint.arge.1.phymask=0x0 # no directly mapped PHYs
+hint.arge.1.miimode=3 # RGMII
+
+hint.arswitch.0.is_7240=0
+hint.arswitch.0.numphys=4
+hint.arswitch.0.phy4cpu=1
+hint.arswitch.0.is_rgmii=1
+hint.arswitch.0.is_gmii=0
# Don't flip on anything that isn't already enabled.
# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're
OpenPOWER on IntegriCloud