[rtems-libbsd commit] ffec: Support more rgmii variants
Sebastian Huber
sebh at rtems.org
Wed Sep 27 09:12:11 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 91a7527699b4fc0627b2459676a8ece7b33a3be7
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=91a7527699b4fc0627b2459676a8ece7b33a3be7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Sep 27 09:55:41 2017 +0200
ffec: Support more rgmii variants
---
freebsd/sys/dev/ffec/if_ffec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/freebsd/sys/dev/ffec/if_ffec.c b/freebsd/sys/dev/ffec/if_ffec.c
index 6df995c..2fc94a6 100644
--- a/freebsd/sys/dev/ffec/if_ffec.c
+++ b/freebsd/sys/dev/ffec/if_ffec.c
@@ -1458,7 +1458,11 @@ ffec_attach(device_t dev)
sc->phy_conn_type = PHY_CONN_MII;
else if (strcasecmp(phy_conn_name, "rmii") == 0)
sc->phy_conn_type = PHY_CONN_RMII;
+#ifndef __rtems__
else if (strcasecmp(phy_conn_name, "rgmii") == 0)
+#else /* __rtems__ */
+ else if (strncasecmp(phy_conn_name, "rgmii", 5) == 0)
+#endif /* __rtems__ */
sc->phy_conn_type = PHY_CONN_RGMII;
}
if (sc->phy_conn_type == PHY_CONN_UNKNOWN) {
More information about the vc
mailing list