aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/imx8/ahab.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-10-14 23:08:46 -0700
committerStefano Babic <sbabic@denx.de>2020-05-01 13:46:21 +0200
commita903e13f975eddf595fe4da8d5328e47964ebd0c (patch)
tree29942da017e283bad10618e16cdc616e25493a06 /arch/arm/mach-imx/imx8/ahab.c
parentb7328de6cd1f2b045f36f7f61722ab26b36b17e0 (diff)
downloadu-boot-a903e13f975eddf595fe4da8d5328e47964ebd0c.zip
u-boot-a903e13f975eddf595fe4da8d5328e47964ebd0c.tar.gz
u-boot-a903e13f975eddf595fe4da8d5328e47964ebd0c.tar.bz2
imx8: Change to use new SECO API commands
Latest SCFW has removed old MISC SECO commands. So update the codes to use new SECO commands. Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/imx8/ahab.c')
-rw-r--r--arch/arm/mach-imx/imx8/ahab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c
index cf3c7d7..361c578 100644
--- a/arch/arm/mach-imx/imx8/ahab.c
+++ b/arch/arm/mach-imx/imx8/ahab.c
@@ -75,7 +75,7 @@ int authenticate_os_container(ulong addr)
memcpy((void *)SEC_SECURE_RAM_BASE, (const void *)addr,
ALIGN(length, CONFIG_SYS_CACHELINE_SIZE));
- err = sc_seco_authenticate(-1, SC_MISC_AUTH_CONTAINER,
+ err = sc_seco_authenticate(-1, SC_SECO_AUTH_CONTAINER,
SECO_LOCAL_SEC_SEC_SECURE_RAM_BASE);
if (err) {
printf("Authenticate container hdr failed, return %d\n",
@@ -123,7 +123,7 @@ int authenticate_os_container(ulong addr)
goto exit;
}
- err = sc_seco_authenticate(-1, SC_MISC_VERIFY_IMAGE,
+ err = sc_seco_authenticate(-1, SC_SECO_VERIFY_IMAGE,
(1 << i));
if (err) {
printf("Authenticate img %d failed, return %d\n",
@@ -144,7 +144,7 @@ int authenticate_os_container(ulong addr)
}
exit:
- if (sc_seco_authenticate(-1, SC_MISC_REL_CONTAINER, 0) != SC_ERR_NONE)
+ if (sc_seco_authenticate(-1, SC_SECO_REL_CONTAINER, 0) != SC_ERR_NONE)
printf("Error: release container failed!\n");
return ret;