summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-10-04 15:35:45 +0200
committerMichal Simek <michal.simek@xilinx.com>2019-10-24 13:37:01 +0200
commit403619515e81bde2d0f1a76ca472fbf8b88572e8 (patch)
treea3e6fffc3747846bad027fe19d240c8c582c3981 /board
parent6596270ecb5d74d5f997da0daa728e06d1f47029 (diff)
downloadu-boot-403619515e81bde2d0f1a76ca472fbf8b88572e8.tar.gz
u-boot-403619515e81bde2d0f1a76ca472fbf8b88572e8.tar.xz
u-boot-403619515e81bde2d0f1a76ca472fbf8b88572e8.zip
arm64: zynqmp: Convert invoke_smc() to xilinx_pm_request()
Remove macros which use PM_SIP_SVC offset and convert invoke_smc() to xilinx_pm_request() which do calculation with PM_SIP_SVC already. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board')
-rw-r--r--board/xilinx/zynqmp/cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c
index f53a1b63be..d3bb57a2e9 100644
--- a/board/xilinx/zynqmp/cmds.c
+++ b/board/xilinx/zynqmp/cmds.c
@@ -51,8 +51,8 @@ static int do_zynqmp_verify_secure(cmd_tbl_t *cmdtp, int flag, int argc,
(ulong)(key_ptr + KEY_PTR_LEN));
}
- ret = invoke_smc(ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD, src_lo, src_hi,
- key_lo, key_hi, ret_payload);
+ ret = xilinx_pm_request(PM_SECURE_IMAGE, src_lo, src_hi,
+ key_lo, key_hi, ret_payload);
if (ret) {
printf("Failed: secure op status:0x%x\n", ret);
} else {