diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-01-18 10:01:50 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2019-01-18 10:29:22 +0800 |
commit | ebdbc25b4cd6d9b1c581e98a85f6469bfcbed113 (patch) | |
tree | 3f0fbccf3de1bee88636d9277c39e093c362e163 /plat/imx/common/imx_sip_svc.c | |
parent | 023bc019e95ca98687f015074c938941a0546eb7 (diff) |
imx: add wakeup source SIP runtime service support
On i.MX8QM/i.MX8QX with system controller inside, the wakeup
source is managed in SCFW(system controller firmware), if the
wakeup source is belonged to system controller partition, then
before Linux suspend, the wakeup source should be set to
SC_PM_WAKE_SRC_SCU, and if the wakeup source is belonged to
Cortex-A partition, the wakeup source should be set to
SC_PM_WAKE_SRC_IRQSTEER, so need to add wakeup source SIP runtime
service to get Linux kernel's wakeup source and set the correct
wakeup source for system controller.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common/imx_sip_svc.c')
-rw-r--r-- | plat/imx/common/imx_sip_svc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/imx/common/imx_sip_svc.c b/plat/imx/common/imx_sip_svc.c index 89b9df8c..a4b8ff29 100644 --- a/plat/imx/common/imx_sip_svc.c +++ b/plat/imx/common/imx_sip_svc.c @@ -32,6 +32,8 @@ static uintptr_t imx_sip_handler(unsigned int smc_fid, case IMX_SIP_CPUFREQ: SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); break; + case IMX_SIP_WAKEUP_SRC: + SMC_RET1(handle, imx_wakeup_src_handler(smc_fid, x1, x2, x3)); #endif default: WARN("Unimplemented i.MX SiP Service Call: 0x%x\n", smc_fid); |