summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/firmware.h
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2014-09-24 01:24:35 +0900
committerKukjin Kim <kgene.kim@samsung.com>2014-10-21 00:06:35 +0900
commit9c261f89a30010a33c15e6b7cfc7c79ae6bea653 (patch)
tree2dd65568bd088e9e77a88f10d040badaa73a26d4 /arch/arm/include/asm/firmware.h
parent066da1ae52c30ae7e2792dbbb0d6bcbba493245e (diff)
ARM: firmware: Introduce suspend and resume operations
This patch extends the firmware_ops structure with two new callbacks: .suspend() and .resume(). The former is intended to ask the firmware to save all its volatile state and suspend the system, without returning back to the kernel in between. The latter is to be called early by very low level platform suspend code after waking up to restore low level hardware state, which can't be restored in non-secure mode. While at it, outdated version of the structure is removed from the documentation and replaced with a reference to the header file. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/include/asm/firmware.h')
-rw-r--r--arch/arm/include/asm/firmware.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/firmware.h b/arch/arm/include/asm/firmware.h
index 2c9f10df7568..5904f59b0409 100644
--- a/arch/arm/include/asm/firmware.h
+++ b/arch/arm/include/asm/firmware.h
@@ -41,6 +41,14 @@ struct firmware_ops {
* Initializes L2 cache
*/
int (*l2x0_init)(void);
+ /*
+ * Enter system-wide suspend.
+ */
+ int (*suspend)(void);
+ /*
+ * Restore state of privileged hardware after system-wide suspend.
+ */
+ int (*resume)(void);
};
/* Global pointer for current firmware_ops structure, can't be NULL. */