diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2017-10-06 15:46:11 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2017-10-06 15:46:11 +0000 |
| commit | 845ed71645fcabae1e0b7aee43ac51a80e0d8787 (patch) | |
| tree | f776fe8e7c17c57356efb779f891da1d26d310fe /sys/dev/psci | |
| parent | d7026b9671c0071dc112169b8349b02fa7cfd470 (diff) | |
Notes
Diffstat (limited to 'sys/dev/psci')
| -rw-r--r-- | sys/dev/psci/psci.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/psci/psci.c b/sys/dev/psci/psci.c index 4ae97eccc45a..b62962f5818a 100644 --- a/sys/dev/psci/psci.c +++ b/sys/dev/psci/psci.c @@ -97,6 +97,7 @@ struct psci_softc *psci_softc = NULL; #ifdef FDT static struct ofw_compat_data compat_data[] = { + {"arm,psci-1.0", (uintptr_t)psci_v0_2_init}, {"arm,psci-0.2", (uintptr_t)psci_v0_2_init}, {"arm,psci", (uintptr_t)psci_v0_1_init}, {NULL, 0} @@ -332,9 +333,11 @@ psci_fdt_callfn(psci_callfn_t *callfn) phandle_t node; node = ofw_bus_find_compatible(OF_peer(0), "arm,psci-0.2"); - if (node == 0) - /* TODO: Handle psci 0.1 */ - return (PSCI_MISSING); + if (node == 0) { + node = ofw_bus_find_compatible(OF_peer(0), "arm,psci-1.0"); + if (node == 0) + return (PSCI_MISSING); + } *callfn = psci_fdt_get_callfn(node); return (0); |
