aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@linaro.org>2014-05-22 21:30:09 -0500
committerPeter Maydell <peter.maydell@linaro.org>2014-06-02 18:15:39 +0100
commitf51c2c8d81441ae1397f0cdc40e4388fcbc97fb7 (patch)
tree05a9af385b4d364c4785af234b6f8717ece7a9ab
parent54577f72e775cd0c8ea4a8400b47dda5e209d7ff (diff)
arm/highbank: enable PSCI emulation supporttest-psci-6
Enable PSCI emulation 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> Message-id: 1400812209-26743-7-git-send-email-robherring2@gmail.com
-rw-r--r--hw/arm/highbank.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index 24231e5448..0cbc865de7 100644
--- a/hw/arm/highbank.c
+++ b/hw/arm/highbank.c
@@ -241,6 +241,15 @@ 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",
+ &error_abort);
+
+ /* Secondary CPUs start in PSCI powered-down state */
+ if (n > 0) {
+ object_property_set_bool(cpuobj, true, "start-powered-off",
+ &error_abort);
+ }
+
if (object_property_find(cpuobj, "reset-cbar", NULL)) {
object_property_set_int(cpuobj, MPCORE_PERIPHBASE,
"reset-cbar", &error_abort);