From ff857dc5d6ab6e1f77c4e18051db9683b6361c1c Mon Sep 17 00:00:00 2001 From: Rafal Jaworowski Date: Mon, 3 Mar 2008 18:44:33 +0000 Subject: [PATCH] Recognize the quad-port Cicada (Vitesse) CS8204 10/100/1000TX PHY. This PHY is found on many embedded development boards: among others MPC8555CDS evaluation systems use it. Approved by: cognet (mentor) MFp4: e500 --- sys/dev/mii/ciphy.c | 4 +++- sys/dev/mii/miidevs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/mii/ciphy.c b/sys/dev/mii/ciphy.c index 4ad1a6cc0ebe..3791ed5cc5a8 100644 --- a/sys/dev/mii/ciphy.c +++ b/sys/dev/mii/ciphy.c @@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$"); /* - * Driver for the Cicada CS8201 10/100/1000 copper PHY. + * Driver for the Cicada CS8201/CS8204 10/100/1000 copper PHY. */ #include @@ -91,6 +91,7 @@ static const struct mii_phydesc ciphys[] = { MII_PHY_DESC(CICADA, CS8201), MII_PHY_DESC(CICADA, CS8201A), MII_PHY_DESC(CICADA, CS8201B), + MII_PHY_DESC(CICADA, CS8204), MII_PHY_DESC(VITESSE, VSC8601), MII_PHY_END }; @@ -378,6 +379,7 @@ ciphy_fixup(struct mii_softc *sc) } switch (model) { + case MII_MODEL_CICADA_CS8204: case MII_MODEL_CICADA_CS8201: /* Turn off "aux mode" (whatever that means) */ diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs index cee13be522f9..107aad4c471a 100644 --- a/sys/dev/mii/miidevs +++ b/sys/dev/mii/miidevs @@ -138,6 +138,7 @@ model xxBROADCOM_ALT1 BCM5708S 0x0015 BCM5708S 1000/2500BaseSX PHY /* Cicada Semiconductor PHYs (now owned by Vitesse?) */ model CICADA CS8201 0x0001 Cicada CS8201 10/100/1000TX PHY +model CICADA CS8204 0x0004 Cicada CS8204 10/100/1000TX PHY model CICADA CS8201A 0x0020 Cicada CS8201 10/100/1000TX PHY model CICADA CS8201B 0x0021 Cicada CS8201 10/100/1000TX PHY model VITESSE VSC8601 0x0002 Vitesse VSC8601 10/100/1000TX PHY