• Varun Wadekar's avatar
    Send power management events to the Trusted OS (TLK) · cb790c5e
    Varun Wadekar authored
    
    
    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: default avatarVarun Wadekar <vwadekar@nvidia.com>
    cb790c5e
tlkd_pm.c 5.47 KB