diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2019-01-15 10:56:36 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2019-01-17 10:49:48 +0800 |
commit | d3996c590d7459dc0aedb989ddc35c15b80cf6dd (patch) | |
tree | 00d69bd7ce431cf1095285f96c4a590f50288cf3 /plat/imx/common/imx_sip_svc.c | |
parent | 025514ba80f9bd51af460ff29c4a325904c1812c (diff) |
imx: add cpu-freq SIP runtime service support
On i.MX8QM/i.MX8QX with system controller inside, the CPU's clock
rate is managed by SCFW(system controller firmware) and can ONLY be
changed from secure world, so SIP runtime service is needed for
setting CPU's clock rate, this patch adds cpu-freq SIP runtime service
support.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/imx/common/imx_sip_svc.c b/plat/imx/common/imx_sip_svc.c index 23ff0bbe..89b9df8c 100644 --- a/plat/imx/common/imx_sip_svc.c +++ b/plat/imx/common/imx_sip_svc.c @@ -29,6 +29,9 @@ static uintptr_t imx_sip_handler(unsigned int smc_fid, #if (defined(PLAT_IMX8QM) || defined(PLAT_IMX8QX)) case IMX_SIP_SRTC: return imx_srtc_handler(smc_fid, handle, x1, x2, x3, x4); + case IMX_SIP_CPUFREQ: + SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); + break; #endif default: WARN("Unimplemented i.MX SiP Service Call: 0x%x\n", smc_fid); |