[rtems-libbsd commit] e1000phy: Provide local support for Marvell' s 88E1512 PHY.

Chris Johns chrisj at rtems.org
Thu Aug 11 07:42:57 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    26a8cee1c3b6f8517547aeaa24122e8f99e7d3ad
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=26a8cee1c3b6f8517547aeaa24122e8f99e7d3ad

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Aug 11 17:41:49 2016 +1000

e1000phy: Provide local support for Marvell's 88E1512 PHY.

This PHY is close to the standard PHY support so providing enough to
allow the PHY probe to pass lets it work on a MicroZed.

---

 freebsd/sys/dev/mii/e1000phy.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/freebsd/sys/dev/mii/e1000phy.c b/freebsd/sys/dev/mii/e1000phy.c
index 47f77d1..f50d41a 100644
--- a/freebsd/sys/dev/mii/e1000phy.c
+++ b/freebsd/sys/dev/mii/e1000phy.c
@@ -60,6 +60,12 @@ __FBSDID("$FreeBSD$");
 #include <dev/mii/miivar.h>
 #include <rtems/bsd/local/miidevs.h>
 
+#ifdef __rtems__
+ /* hacked into here to avoid having to touch the geerated header file. */
+ #define MII_MODEL_xxMARVELL_E1512       0x001d
+ #define MII_STR_xxMARVELL_E1512 "Marvell 88E1512 Gigabit PHY"
+#endif /* __rtems__ */
+
 #include <dev/mii/e1000phyreg.h>
 
 #include <rtems/bsd/local/miibus_if.h>
@@ -112,6 +118,9 @@ static const struct mii_phydesc e1000phys[] = {
 	MII_PHY_DESC(xxMARVELL, E1149R),
 	MII_PHY_DESC(xxMARVELL, E3016),
 	MII_PHY_DESC(xxMARVELL, PHYG65G),
+#if __rtems__
+	MII_PHY_DESC(xxMARVELL, E1512),
+#endif /* __rtems__ */
 	MII_PHY_END
 };
 




More information about the vc mailing list