Add an alternate compatible string for eTSEC devices.

Newer device trees now use fsl,etsec2 to denote eTSEC nodes.  Same device, new
name.
This commit is contained in:
Justin Hibbits 2016-05-19 00:04:58 +00:00
parent c9fabc7afc
commit af20e818eb

View File

@ -115,7 +115,8 @@ tsec_fdt_probe(device_t dev)
strcmp(ofw_bus_get_type(dev), "network") != 0)
return (ENXIO);
if (!ofw_bus_is_compatible(dev, "gianfar"))
if (!ofw_bus_is_compatible(dev, "gianfar") &&
!ofw_bus_is_compatible(dev, "fsl,etsec2"))
return (ENXIO);
sc = device_get_softc(dev);