Upstream U-Boot will continue to offer only a PSCI v0.1 interface. To
make us independent of patches, add the IDs for CPU_OFF and CPU_ON to
the dispatcher. Those functions are practically compatible between 0.1
and 0.2.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
#define PSCI_SYSTEM_OFF 0x84000008
#define PSCI_SYSTEM_RESET 0x84000009
+/* v0.1 function IDs as used by U-Boot */
+#define PSCI_CPU_OFF_V0_1_UBOOT 0x95c1ba5f
+#define PSCI_CPU_ON_V0_1_UBOOT 0x95c1ba60
+
#define PSCI_SUCCESS 0
#define PSCI_NOT_SUPPORTED (-1)
#define PSCI_INVALID_PARAMETERS (-2)
return 2;
case PSCI_CPU_OFF:
+ case PSCI_CPU_OFF_V0_1_UBOOT:
/*
* The reset function will take care of calling
* psci_emulate_spin
return 0;
case PSCI_CPU_ON_32:
+ case PSCI_CPU_ON_V0_1_UBOOT:
return psci_emulate_cpu_on(cpu_data, ctx);
case PSCI_AFFINITY_INFO_32: