From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnfG2-00049Q-J9 for qemu-devel@nongnu.org; Thu, 22 May 2014 22:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnfFe-0003pV-IK for qemu-devel@nongnu.org; Thu, 22 May 2014 22:30:54 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:61243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnfFe-0003p6-CG for qemu-devel@nongnu.org; Thu, 22 May 2014 22:30:30 -0400 Received: by mail-ob0-f170.google.com with SMTP id uy5so4738889obc.15 for ; Thu, 22 May 2014 19:30:29 -0700 (PDT) From: Rob Herring Date: Thu, 22 May 2014 21:30:09 -0500 Message-Id: <1400812209-26743-7-git-send-email-robherring2@gmail.com> In-Reply-To: <1400812209-26743-1-git-send-email-robherring2@gmail.com> References: <1400812209-26743-1-git-send-email-robherring2@gmail.com> Subject: [Qemu-devel] [PATCH v2 6/6] arm/highbank: enable PSCI emulation support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Rob Herring , Peter Crosthwaite , qemu-devel@nongnu.org, Christoffer Dall From: Rob Herring 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 --- 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