Make at91_pmc probe any at91 pmc device we support, not just at91rm9200.

MFC after:	1 week
This commit is contained in:
Olivier Houchard 2015-11-05 22:03:20 +00:00
parent 2ff57ca0cc
commit a3f8e2c7fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290420

View 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");