diff mbox series

[2/6] imx8m: soc: use arm_smccc_smc

Message ID 20200511094837.8572-3-peng.fan@nxp.com
State Accepted
Commit a2f143eaacb35621725c2d2e4c861cab651feafc
Headers show
Series imx: clean up sip file | expand

Commit Message

Peng Fan May 11, 2020, 9:48 a.m. UTC
Use arm_smccc_smc to replace call_imx_sip

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 arch/arm/mach-imx/imx8m/soc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 347fd6d0ad..e6863ab5cf 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -20,6 +20,7 @@ 
 #include <fdt_support.h>
 #include <fsl_wdog.h>
 #include <imx_sip.h>
+#include <linux/arm-smccc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -429,10 +430,12 @@  void reset_cpu(ulong addr)
 static void acquire_buildinfo(void)
 {
 	u64 atf_commit = 0;
+	struct arm_smccc_res res;
 
 	/* Get ARM Trusted Firmware commit id */
-	atf_commit = call_imx_sip(IMX_SIP_BUILDINFO,
-				  IMX_SIP_BUILDINFO_GET_COMMITHASH, 0, 0, 0);
+	arm_smccc_smc(IMX_SIP_BUILDINFO, IMX_SIP_BUILDINFO_GET_COMMITHASH,
+		      0, 0 , 0, 0, 0, 0, &res);
+	atf_commit = res.a0;
 	if (atf_commit == 0xffffffff) {
 		debug("ATF does not support build info\n");
 		atf_commit = 0x30; /* Display 0, 0 ascii is 0x30 */