summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorSudeep Holla <Sudeep.Holla@arm.com>2015-06-18 15:41:34 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2015-10-02 14:35:17 +0100
commitfaf7ec4a92c0231d1079177095077c162eb9b466 (patch)
tree8254d34ad3ff1871e96494d87b53a26223b87d21 /include/uapi
parent029180b1c99046831c33ed43fdbdb620506cb15b (diff)
downloadlinux-stable-faf7ec4a92c0231d1079177095077c162eb9b466.tar.gz
linux-stable-faf7ec4a92c0231d1079177095077c162eb9b466.tar.bz2
linux-stable-faf7ec4a92c0231d1079177095077c162eb9b466.zip
drivers: firmware: psci: add system suspend support
PSCI v1.0 introduces a new API called PSCI_SYSTEM_SUSPEND. This API provides the mechanism by which the calling OS can request entry into the deepest possible system sleep state. It meets all the necessary preconditions for entering suspend to RAM state in Linux. This patch adds support for PSCI_SYSTEM_SUSPEND in psci firmware and registers a psci system suspend operation to implement the suspend-to-RAM(s2r) in a generic way on all the platforms implementing PSCI. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/psci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/psci.h b/include/uapi/linux/psci.h
index 0a9485f3c6c3..3d7a0fc021a7 100644
--- a/include/uapi/linux/psci.h
+++ b/include/uapi/linux/psci.h
@@ -47,6 +47,9 @@
#define PSCI_0_2_FN64_MIGRATE_INFO_UP_CPU PSCI_0_2_FN64(7)
#define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)
+#define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)
+
+#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)
/* PSCI v0.2 power state encoding for CPU_SUSPEND function */
#define PSCI_0_2_POWER_STATE_ID_MASK 0xffff