diff options
-rw-r--r-- | sys/mips/conf/RSPRO | 6 | ||||
-rw-r--r-- | sys/mips/conf/RSPRO.hints | 25 |
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 |