ffec: Support more rgmii variants

This commit is contained in:
Sebastian Huber 2017-09-27 09:55:41 +02:00
parent 95b102f733
commit 91a7527699

View File

@ -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) {