Add another compatibility check for QorIQ GPIO driver.

Some MPC85xx GPIO controllers are compatible with QorIQ.

It may make more sense in the future to rename this and mpc85xx_gpio.c, as
mpc85xx_gpio.c appears to only be compatible with a few mpc85xx SoCs.  All other
MPC85xx SoCs use the same controller as QorIQ.
This commit is contained in:
Justin Hibbits 2016-03-01 03:41:48 +00:00
parent e665eafb25
commit a49d0aa92a

View File

@ -219,7 +219,8 @@ static int
qoriq_gpio_probe(device_t dev)
{
if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio"))
if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio") &&
!ofw_bus_is_compatible(dev, "fsl,mpc8572-gpio"))
return (ENXIO);
device_set_desc(dev, "Freescale QorIQ GPIO driver");