Skip to content
Snippets Groups Projects
Commit 669f2d18 authored by Breno Lima's avatar Breno Lima Committed by Stefano Babic
Browse files

imx: hab: Keep CAAM clock enabled after authenticating additional images


Currently it is not possible to run CMD_DEK on i.MX SPL targets:

=> dek_blob 0x12000000 0x12001000 128

The system hangs after running dek_blob because the CAAM clock is being
disabled by the HAB code. There is no need to disable CAAM clock after
authenticating additional boot images, thus keep CAAM clock enabled to
address this issue.

Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent d247cf50
No related branches found
No related tags found
No related merge requests found
...@@ -507,13 +507,13 @@ int imx_hab_authenticate_image(uint32_t ddr_start, uint32_t image_size, ...@@ -507,13 +507,13 @@ int imx_hab_authenticate_image(uint32_t ddr_start, uint32_t image_size,
/* Verify IVT header bugging out on error */ /* Verify IVT header bugging out on error */
if (verify_ivt_header(ivt_hdr)) if (verify_ivt_header(ivt_hdr))
goto hab_caam_clock_disable; goto hab_authentication_exit;
/* Verify IVT body */ /* Verify IVT body */
if (ivt->self != ivt_addr) { if (ivt->self != ivt_addr) {
printf("ivt->self 0x%08x pointer is 0x%08x\n", printf("ivt->self 0x%08x pointer is 0x%08x\n",
ivt->self, ivt_addr); ivt->self, ivt_addr);
goto hab_caam_clock_disable; goto hab_authentication_exit;
} }
start = ddr_start; start = ddr_start;
...@@ -591,8 +591,7 @@ hab_exit_failure_print_status: ...@@ -591,8 +591,7 @@ hab_exit_failure_print_status:
get_hab_status(); get_hab_status();
#endif #endif
hab_caam_clock_disable: hab_authentication_exit:
hab_caam_clock_enable(0);
if (load_addr != 0) if (load_addr != 0)
result = 0; result = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment