ARM: firmware: Introduce suspend and resume operations
authorTomasz Figa <t.figa@samsung.com>
Tue, 23 Sep 2014 16:24:35 +0000 (01:24 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 20 Oct 2014 15:06:35 +0000 (00:06 +0900)
commit9c261f89a30010a33c15e6b7cfc7c79ae6bea653
tree2dd65568bd088e9e77a88f10d040badaa73a26d4
parent066da1ae52c30ae7e2792dbbb0d6bcbba493245e
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>
Documentation/arm/firmware.txt
arch/arm/include/asm/firmware.h