[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 6/6] arm/highbank: enable PSCI emulation support
From: |
Rob Herring |
Subject: |
[Qemu-devel] [PATCH v2 6/6] arm/highbank: enable PSCI emulation support |
Date: |
Thu, 22 May 2014 21:30:09 -0500 |
From: Rob Herring <address@hidden>
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 <address@hidden>
---
v2:
- Add error_abort on setting of start-powered-off.
hw/arm/highbank.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index 24231e5..0cbc865 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);
--
1.9.1
- [Qemu-devel] [PATCH v2 0/6] ARM: add PSCI emulation support, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 4/6] target-arm: add emulation of PSCI calls for system emulation, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 1/6] target-arm: don't set cpu do_interrupt handler for user mode emulation, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 2/6] target-arm: add powered off cpu state, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 3/6] target-arm: add hvc and smc exception emulation handling infrastructure, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 5/6] arm/virt: enable PSCI emulation support for system emulation, Rob Herring, 2014/05/22
- [Qemu-devel] [PATCH v2 6/6] arm/highbank: enable PSCI emulation support,
Rob Herring <=