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.
This commit is contained in:
Adrian Chadd 2012-05-19 20:11:18 +00:00
parent 6607596344
commit 2d269a1628
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235661
2 changed files with 27 additions and 4 deletions

View File

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

View File

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