diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-zynqmp-mainline/0015-arm-xlnx-zynqmp-Add-PSCI-setup.patch')
-rw-r--r-- | recipes-devtools/qemu/qemu-zynqmp-mainline/0015-arm-xlnx-zynqmp-Add-PSCI-setup.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-zynqmp-mainline/0015-arm-xlnx-zynqmp-Add-PSCI-setup.patch b/recipes-devtools/qemu/qemu-zynqmp-mainline/0015-arm-xlnx-zynqmp-Add-PSCI-setup.patch new file mode 100644 index 00000000..20b9b827 --- /dev/null +++ b/recipes-devtools/qemu/qemu-zynqmp-mainline/0015-arm-xlnx-zynqmp-Add-PSCI-setup.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 5c6a101203322028e91586736b4f6e3c5ecc7d09 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Crosthwaite <peter.crosthwaite@xilinx.com> | ||
3 | Date: Mon, 23 Mar 2015 04:05:19 -0700 | ||
4 | Subject: [PATCH 15/15] arm: xlnx-zynqmp: Add PSCI setup | ||
5 | |||
6 | Use SMC PSCI, with the standard policy of secondaries starting in | ||
7 | power-off. | ||
8 | |||
9 | Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> | ||
10 | Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> | ||
11 | --- | ||
12 | hw/arm/xlnx-zynqmp.c | 8 ++++++++ | ||
13 | 1 file changed, 8 insertions(+) | ||
14 | |||
15 | diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c | ||
16 | index e015025..0265fba 100644 | ||
17 | --- a/hw/arm/xlnx-zynqmp.c | ||
18 | +++ b/hw/arm/xlnx-zynqmp.c | ||
19 | @@ -97,6 +97,14 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) | ||
20 | for (i = 0; i < XLNX_ZYNQMP_NUM_CPUS; i++) { | ||
21 | qemu_irq irq; | ||
22 | |||
23 | + object_property_set_int(OBJECT(&s->cpu[i]), QEMU_PSCI_CONDUIT_SMC, | ||
24 | + "psci-conduit", &error_abort); | ||
25 | + if (i > 0) { | ||
26 | + /* Secondary CPUs start in PSCI powered-down state */ | ||
27 | + object_property_set_bool(OBJECT(&s->cpu[i]), true, | ||
28 | + "start-powered-off", &error_abort); | ||
29 | + } | ||
30 | + | ||
31 | object_property_set_bool(OBJECT(&s->cpu[i]), true, "realized", &err); | ||
32 | ERR_PROP_CHECK_RETURN(err, errp); | ||
33 | |||
34 | -- | ||
35 | 1.7.10.4 | ||
36 | |||