]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
hab: Change calling to ROM API failsafe
authorYe Li <ye.li@nxp.com>
Thu, 25 Mar 2021 09:30:09 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
Modify to use hab_rvt_failsafe function for failsafe ROM API, not
directly call its ROM address. This function will wrap the sip call for iMX8M
platforms.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/hab.c

index f2d5f744e84098caf7b8ec371181035be457a062..bd00d4a458d3d0bd52a4d6237f82847e8db186a6 100644 (file)
@@ -539,14 +539,11 @@ static int do_authenticate_image(struct cmd_tbl *cmdtp, int flag, int argc,
 static int do_hab_failsafe(struct cmd_tbl *cmdtp, int flag, int argc,
                           char *const argv[])
 {
-       hab_rvt_failsafe_t *hab_rvt_failsafe;
-
        if (argc != 1) {
                cmd_usage(cmdtp);
                return 1;
        }
 
-       hab_rvt_failsafe = (hab_rvt_failsafe_t *)HAB_RVT_FAILSAFE;
        hab_rvt_failsafe();
 
        return 0;