diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2017-09-01 21:32:26 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-09-01 21:37:11 +0800 |
commit | a8c35fafe0af0bda340592373d446d93cc1ec75a (patch) | |
tree | 80b82a2b3f5adc201d25d269cd527ca677d4f6b0 /plat/freescale/common/sip_svc.c | |
parent | 4282af76df7ceeb436ffe0479b5ce048bf90d986 (diff) |
freescale: add srtc SIP support
Add SRTC SIP support for i.MX8QM/i.MX8QXP.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/freescale/common/sip_svc.c')
-rw-r--r-- | plat/freescale/common/sip_svc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/freescale/common/sip_svc.c b/plat/freescale/common/sip_svc.c index d8c1c5bf..960245da 100644 --- a/plat/freescale/common/sip_svc.c +++ b/plat/freescale/common/sip_svc.c @@ -39,6 +39,8 @@ extern int imx_gpc_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3); extern int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3); +extern int imx_srtc_handler(uint32_t smc_fid, u_register_t x1, + u_register_t x2, u_register_t x3, u_register_t x4); /* Setup i.MX platform specific services Services */ static int32_t plat_svc_setup(void) @@ -69,6 +71,9 @@ uintptr_t imx_svc_smc_handler(uint32_t smc_fid, case FSL_SIP_CPUFREQ: SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); break; + case FSL_SIP_SRTC: + SMC_RET1(handle, imx_srtc_handler(smc_fid, x1, x2, x3, x4)); + break; #endif default: WARN("Unimplemented SIP Service Call: 0x%x \n", smc_fid); |