From a49d0aa92a78ccfc61588f78e0a2f2dba757d2f8 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Tue, 1 Mar 2016 03:41:48 +0000 Subject: [PATCH] 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. --- sys/powerpc/mpc85xx/qoriq_gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/mpc85xx/qoriq_gpio.c b/sys/powerpc/mpc85xx/qoriq_gpio.c index 626b390184c..2838548dd7a 100644 --- a/sys/powerpc/mpc85xx/qoriq_gpio.c +++ b/sys/powerpc/mpc85xx/qoriq_gpio.c @@ -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");