]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Make at91_pmc probe any at91 pmc device we support, not just at91rm9200.
authorcognet <cognet@FreeBSD.org>
Thu, 5 Nov 2015 22:03:20 +0000 (22:03 +0000)
committercognet <cognet@FreeBSD.org>
Thu, 5 Nov 2015 22:03:20 +0000 (22:03 +0000)
MFC after: 1 week

sys/arm/at91/at91_pmc.c

index 13d5ff7f7479ea55ef2c2ee7e8bf8f9864a506ea..16f62ec1433107800791940acb20f9df7d2c206b 100644 (file)
@@ -661,7 +661,10 @@ static int
 at91_pmc_probe(device_t dev)
 {
 #ifdef FDT
-       if (!ofw_bus_is_compatible(dev, "atmel,at91rm9200-pmc"))
+       if (!ofw_bus_is_compatible(dev, "atmel,at91rm9200-pmc") &&
+               !ofw_bus_is_compatible(dev, "atmel,at91sam9260-pmc") &&
+               !ofw_bus_is_compatible(dev, "atmel,at91sam9g45-pmc") &&
+               !ofw_bus_is_compatible(dev, "atmel,at91sam9x5-pmc"))
                return (ENXIO);
 #endif
        device_set_desc(dev, "PMC");