From 607084ee4c2a7c20832beb8cd1d5cebf02b2cb26 Mon Sep 17 00:00:00 2001 From: Achin Gupta Date: Sun, 9 Feb 2014 18:24:19 +0000 Subject: Add power management support in the SPD This patch implements a set of handlers in the SPD which are called by the PSCI runtime service upon receiving a power management operation. These handlers in turn pass control to the Secure Payload image if required before returning control to PSCI. This ensures that the Secure Payload has complete visibility of all power transitions in the system and can prepare accordingly. Change-Id: I2d1dba5629b7cf2d53999d39fe807dfcf3f62fe2 --- services/psci/psci_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'services/psci/psci_common.c') diff --git a/services/psci/psci_common.c b/services/psci/psci_common.c index 214db780..cacd97eb 100644 --- a/services/psci/psci_common.c +++ b/services/psci/psci_common.c @@ -40,6 +40,12 @@ #include #include "debug.h" +/* + * Provide a null weak instantiation for SPD power management operations. An SPD + * can define its own instance overriding this one + */ +const spd_pm_ops __attribute__((weak)) spd_pm = {0}; + /******************************************************************************* * Arrays that contains information needs to resume a cpu's execution when woken * out of suspend or off states. 'psci_ns_einfo_idx' keeps track of the next -- cgit v1.2.3