diff options
author | adrian <adrian@FreeBSD.org> | 2012-05-01 06:21:02 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-05-01 06:21:02 +0000 |
commit | 7ef027ad2013b9b4f08346afe54c4710692cb56c (patch) | |
tree | 07899e6467d048be61056a571066cc11edd03e2f /sys/mips | |
parent | efd05c437c0a003a52f2b8b672e219b7446fd427 (diff) | |
download | FreeBSD-src-7ef027ad2013b9b4f08346afe54c4710692cb56c.zip FreeBSD-src-7ef027ad2013b9b4f08346afe54c4710692cb56c.tar.gz |
Convert AP96 to use the mdioproxy and ARGE_MDIO option.
arge1 still works (it's the standalone PHY) but arge0 and the other switch
ports don't work. They're enumerated though, demonstrating that the
mdiobus abstraction is correctly working.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/conf/AP96 | 4 | ||||
-rw-r--r-- | sys/mips/conf/AP96.hints | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/sys/mips/conf/AP96 b/sys/mips/conf/AP96 index 8b5fb9f..28e4c70 100644 --- a/sys/mips/conf/AP96 +++ b/sys/mips/conf/AP96 @@ -40,3 +40,7 @@ options ROOTDEVNAME=\"ufs:map/rootfs.uzip\" options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash options ATH_EEPROM_FIRMWARE # Use EEPROM from flash device firmware # Used by the above + +# Options required for miiproxy and mdiobus +options ARGE_MDIO # Export an MDIO bus separate from arge +device miiproxy # MDIO bus <-> MII PHY rendezvous diff --git a/sys/mips/conf/AP96.hints b/sys/mips/conf/AP96.hints index 63ce1ba..e89a1fea 100644 --- a/sys/mips/conf/AP96.hints +++ b/sys/mips/conf/AP96.hints @@ -1,15 +1,33 @@ # $FreeBSD$ +# arge0 MDIO bus - there's no arge1 MDIO bus for AR71xx +hint.argemdio.0.at="nexus0" +hint.argemdio.0.maddr=0x19000000 +hint.argemdio.0.msize=0x1000 +hint.argemdio.0.order=0 + +# Create two mdioproxy instances - by default only one is created +# per mdiobus above. +hint.mdioproxy.0.at="mdio0" +hint.mdioproxy.1.at="mdio0" + # TODO: RGMII +# XXX this port currently doesn't work with the current configuration. hint.arge.0.phymask=0x0f hint.arge.0.media=1000 hint.arge.0.fduplex=1 +# For now, rendezouvs this on the arge0 mdiobus. +# Later, this will rendezvous via the AR8316 switch. +hint.arge.0.mdio=mdioproxy0 # TODO: RGMII # TODO: pll_1000 = 0x1f000000 hint.arge.1.phymask=0x10 # hint.arge.1.media=1000 # hint.arge.1.fduplex=1 +# For now, rendezouvs this on the arge0 mdiobus. +# Later, this will rendezvous via the AR8316 switch. +hint.arge.1.mdio=mdioproxy1 # ath0 - slot 17 hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1fff1000 |