diff options
author | Peng Fan <peng.fan@nxp.com> | 2017-11-01 17:59:35 +0800 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2018-06-11 10:08:40 +0300 |
commit | 7280cd36cc7ca6e3a3703ee3c03c9c582d937205 (patch) | |
tree | fe08ccafee7ef1400af7bb44fe1936c1b21466ed /plat/imx/common | |
parent | bb1935d40c23e381b2ff9a7ed49935ca4a404376 (diff) |
imx8mq: add src sip to handle m4
Add src sip to handle M4 boot and status check
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'plat/imx/common')
-rw-r--r-- | plat/imx/common/include/fsl_sip.h | 4 | ||||
-rw-r--r-- | plat/imx/common/sip_svc.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/plat/imx/common/include/fsl_sip.h b/plat/imx/common/include/fsl_sip.h index be9af94b..306cdecc 100644 --- a/plat/imx/common/include/fsl_sip.h +++ b/plat/imx/common/include/fsl_sip.h @@ -28,4 +28,8 @@ #define FSL_SIP_BUILDINFO_GET_COMMITHASH 0x00 #define FSL_SIP_DDR_DVFS 0xc2000004 + +#define FSL_SIP_SRC 0xc2000005 +#define FSL_SIP_SRC_M4_START 0x00 +#define FSL_SIP_SRC_M4_STARTED 0x01 #endif diff --git a/plat/imx/common/sip_svc.c b/plat/imx/common/sip_svc.c index a45a0a35..a5578a8c 100644 --- a/plat/imx/common/sip_svc.c +++ b/plat/imx/common/sip_svc.c @@ -44,6 +44,7 @@ extern int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1, u_register_t 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); extern int lpddr4_dvfs_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3); +extern int imx_src_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3); /* Setup i.MX platform specific services Services */ static int32_t plat_svc_setup(void) @@ -116,6 +117,9 @@ uintptr_t imx_svc_smc_handler(uint32_t smc_fid, case FSL_SIP_DDR_DVFS: SMC_RET1(handle, lpddr4_dvfs_handler(smc_fid, x1, x2, x3)); break; + case FSL_SIP_SRC: + SMC_RET1(handle, imx_src_handler(smc_fid, x1, x2, x3)); + break; #endif #if (defined(PLAT_IMX8QM) || defined(PLAT_IMX8QXP)) case FSL_SIP_CPUFREQ: |