summaryrefslogtreecommitdiff
path: root/plat/imx/common
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2019-05-08 22:29:21 +0300
committerLeonard Crestez <leonard.crestez@nxp.com>2019-05-09 17:20:43 +0300
commit950d05f752e0d35c45a7123ed1538efaabd8c37c (patch)
treef119173603200ea17c525b9926e5173ab17b92d9 /plat/imx/common
parentf2f0846598909cb905de5d4380bac5b1d4c89d09 (diff)
plat: imx8m: Implement IMX_SIP_BUILDINFO
The IMX_SIP_BUILDINFO call was implemented for imx8qm and imx8qx but it's also applicable to imx8m. This fixes U-Boot not printing commit hash on 8m with upstream TF-A. Change-Id: Idcfd9729eaaccf329c24e241da325f1f6cd3c880 Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Diffstat (limited to 'plat/imx/common')
-rw-r--r--plat/imx/common/imx_sip_handler.c4
-rw-r--r--plat/imx/common/include/imx_sip_svc.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/plat/imx/common/imx_sip_handler.c b/plat/imx/common/imx_sip_handler.c
index 4eabda79..89771cd6 100644
--- a/plat/imx/common/imx_sip_handler.c
+++ b/plat/imx/common/imx_sip_handler.c
@@ -14,6 +14,8 @@
#include <imx_sip_svc.h>
#include <sci/sci.h>
+#if defined(PLAT_IMX8QM) || defined(PLAT_IMX8QX)
+
#ifdef PLAT_IMX8QM
const static int ap_cluster_index[PLATFORM_CLUSTER_COUNT] = {
SC_R_A53, SC_R_A72,
@@ -139,6 +141,8 @@ int imx_misc_set_temp_handler(uint32_t smc_fid,
return sc_misc_set_temp(ipc_handle, x1, x2, x3, x4);
}
+#endif /* defined(PLAT_IMX8QM) || defined(PLAT_IMX8QX) */
+
static uint64_t imx_get_commit_hash(u_register_t x2,
u_register_t x3,
u_register_t x4)
diff --git a/plat/imx/common/include/imx_sip_svc.h b/plat/imx/common/include/imx_sip_svc.h
index 648be377..afe62d4a 100644
--- a/plat/imx/common/include/imx_sip_svc.h
+++ b/plat/imx/common/include/imx_sip_svc.h
@@ -38,9 +38,9 @@ int imx_otp_handler(uint32_t smc_fid, void *handle,
int imx_misc_set_temp_handler(uint32_t smc_fid, u_register_t x1,
u_register_t x2, u_register_t x3,
u_register_t x4);
+#endif
uint64_t imx_buildinfo_handler(uint32_t smc_fid, u_register_t x1,
u_register_t x2, u_register_t x3,
u_register_t x4);
-#endif
#endif /* __IMX_SIP_SVC_H__ */