Send power management events to the Trusted OS (TLK)
This patch adds PM handlers to TLKD for the system suspend/resume and
system poweroff/reset cases. TLK expects all SMCs through a single
handler, which then fork out into multiple handlers depending on the
SMC. We tap into the same single entrypoint by restoring the S-EL1
context before passing the PM event via register 'x0'. On completion
of the PM event, TLK sends a completion SMC and TLKD then moves on
with the PM process.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent a6ef882 commit cb790c5e486cba4fbc4a4d0cdb89b5c65c886355
@Varun Wadekar Varun Wadekar authored on 26 Aug 2015
Showing 3 changed files
View
include/bl32/payloads/tlk.h
View
services/spd/tlkd/tlkd_main.c
View
services/spd/tlkd/tlkd_pm.c