summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-03-01 03:41:48 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-03-01 03:41:48 +0000
commit32011582e1a91d218e8e9d652ff8e0aa00d00f25 (patch)
tree007ebbeef6dc19afb0cd82cf76e7b432d7a191cc /sys/powerpc
parent23e52c351253c7260d6757e98af0854e074ad60f (diff)
downloadFreeBSD-src-32011582e1a91d218e8e9d652ff8e0aa00d00f25.zip
FreeBSD-src-32011582e1a91d218e8e9d652ff8e0aa00d00f25.tar.gz
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.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/mpc85xx/qoriq_gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/mpc85xx/qoriq_gpio.c b/sys/powerpc/mpc85xx/qoriq_gpio.c
index 626b390..2838548 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");
OpenPOWER on IntegriCloud