mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
imx8m: soc: use arm_smccc_smc
Use arm_smccc_smc to replace call_imx_sip Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <fsl_wdog.h>
|
#include <fsl_wdog.h>
|
||||||
#include <imx_sip.h>
|
#include <imx_sip.h>
|
||||||
|
#include <linux/arm-smccc.h>
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
@@ -432,10 +433,12 @@ void reset_cpu(ulong addr)
|
|||||||
static void acquire_buildinfo(void)
|
static void acquire_buildinfo(void)
|
||||||
{
|
{
|
||||||
u64 atf_commit = 0;
|
u64 atf_commit = 0;
|
||||||
|
struct arm_smccc_res res;
|
||||||
|
|
||||||
/* Get ARM Trusted Firmware commit id */
|
/* Get ARM Trusted Firmware commit id */
|
||||||
atf_commit = call_imx_sip(IMX_SIP_BUILDINFO,
|
arm_smccc_smc(IMX_SIP_BUILDINFO, IMX_SIP_BUILDINFO_GET_COMMITHASH,
|
||||||
IMX_SIP_BUILDINFO_GET_COMMITHASH, 0, 0, 0);
|
0, 0 , 0, 0, 0, 0, &res);
|
||||||
|
atf_commit = res.a0;
|
||||||
if (atf_commit == 0xffffffff) {
|
if (atf_commit == 0xffffffff) {
|
||||||
debug("ATF does not support build info\n");
|
debug("ATF does not support build info\n");
|
||||||
atf_commit = 0x30; /* Display 0, 0 ascii is 0x30 */
|
atf_commit = 0x30; /* Display 0, 0 ascii is 0x30 */
|
||||||
|
Reference in New Issue
Block a user