drivers: firmware: psci: add system suspend support
authorSudeep Holla <Sudeep.Holla@arm.com>
Thu, 18 Jun 2015 14:41:34 +0000 (15:41 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2015 13:35:17 +0000 (14:35 +0100)
commitfaf7ec4a92c0231d1079177095077c162eb9b466
tree8254d34ad3ff1871e96494d87b53a26223b87d21
parent029180b1c99046831c33ed43fdbdb620506cb15b
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>
drivers/firmware/psci.c
include/uapi/linux/psci.h