aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@linaro.org>2014-05-01 21:51:35 -0500
committerRob Herring <rob.herring@linaro.org>2014-05-05 09:13:10 -0500
commitddfd19503a6bd5abe5389b7cbf1cc9ba726dbdd9 (patch)
treee88069f3827d3c255a957511e3882cd3fbab0462
parente90365b1981bc5b58a8df92944044673e632d930 (diff)
arm/highbank: enable PSCI emulation supportpsci-emu
Enable PSCI enulation on highbank and midway platforms. Note that this requires fixing the PSCI function IDs in the DTB to match what QEMU is using. This should get fixed. Signed-off-by: Rob Herring <rob.herring@linaro.org>
-rw-r--r--hw/arm/highbank.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index 46b9f1e0c..092df1f19 100644
--- a/hw/arm/highbank.c
+++ b/hw/arm/highbank.c
@@ -242,6 +242,14 @@ static void calxeda_init(QEMUMachineInitArgs *args, enum cxmachines machine)
cpuobj = object_new(object_class_get_name(oc));
cpu = ARM_CPU(cpuobj);
+ object_property_set_int(cpuobj, QEMU_PSCI_METHOD_SMC, "psci-method",
+ NULL);
+
+ /* Secondary CPUs start in PSCI powered-down state */
+ if (n > 0) {
+ object_property_set_bool(cpuobj, true, "start-powered-off", NULL);
+ }
+
if (object_property_find(cpuobj, "reset-cbar", NULL)) {
object_property_set_int(cpuobj, MPCORE_PERIPHBASE,
"reset-cbar", &error_abort);