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:
parent
c9fabc7afc
commit
af20e818eb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user