summaryrefslogtreecommitdiff
path: root/plat/imx/common
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-12-06 21:57:51 +0800
committerAbel Vesa <abel.vesa@nxp.com>2018-06-11 10:33:02 +0300
commitc82c579be15ca6221353a22b30a23944dc92985a (patch)
treea46808b47d28520056799cbe48afe751d9ee6ab3 /plat/imx/common
parent66b28ef7fd902017bffeaae4fafffa430c516557 (diff)
imx8mq: add SIP for NOC settings
On i.MX8MQ, NOC may need different settings for different use cases, so add SIP for NOC settings. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common')
-rw-r--r--plat/imx/common/include/fsl_sip.h3
-rw-r--r--plat/imx/common/sip_svc.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/plat/imx/common/include/fsl_sip.h b/plat/imx/common/include/fsl_sip.h
index 9103bcc3..24b8eb31 100644
--- a/plat/imx/common/include/fsl_sip.h
+++ b/plat/imx/common/include/fsl_sip.h
@@ -45,4 +45,7 @@
#define FSL_SIP_HAB_REPORT_EVENT 0x03
#define FSL_SIP_HAB_REPORT_STATUS 0x04
+#define FSL_SIP_NOC 0xc2000008
+#define FSL_SIP_NOC_LCDIF 0x0
+
#endif
diff --git a/plat/imx/common/sip_svc.c b/plat/imx/common/sip_svc.c
index 7ac1ecdc..5e842cf9 100644
--- a/plat/imx/common/sip_svc.c
+++ b/plat/imx/common/sip_svc.c
@@ -47,6 +47,7 @@ extern int lpddr4_dvfs_handler(uint32_t smc_fid, u_register_t x1, u_register_t
extern int imx_src_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3);
extern int imx_soc_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3);
extern int imx_hab_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, u_register_t x3, u_register_t x4);
+extern int imx_noc_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)
@@ -127,6 +128,8 @@ uintptr_t imx_svc_smc_handler(uint32_t smc_fid,
break;
case FSL_SIP_HAB:
SMC_RET1(handle, imx_hab_handler(smc_fid, x1, x2, x3, x4));
+ case FSL_SIP_NOC:
+ SMC_RET1(handle, imx_noc_handler(smc_fid, x1, x2, x3));
break;
#endif
#if (defined(PLAT_IMX8QM) || defined(PLAT_IMX8QXP))