Author: cognet
Date: Thu Nov  5 22:03:20 2015
New Revision: 290420
URL: https://svnweb.freebsd.org/changeset/base/290420

Log:
  Make at91_pmc probe any at91 pmc device we support, not just at91rm9200.
  
  MFC after:    1 week

Modified:
  head/sys/arm/at91/at91_pmc.c

Modified: head/sys/arm/at91/at91_pmc.c
==============================================================================
--- head/sys/arm/at91/at91_pmc.c        Thu Nov  5 21:54:35 2015        
(r290419)
+++ head/sys/arm/at91/at91_pmc.c        Thu Nov  5 22:03:20 2015        
(r290420)
@@ -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");
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to