Commit 205680f9f4baabc030050ae14e7b2bb700a3ae70

Authored by Ye Li
1 parent f405551dcc
Exists in emb_lf_v2022.04

LFU-428 imx8ulp: Add warning for CAAM non-secure state failure

When booting from OEM closed part, due to OTPMK not programmed correctly,
CAAM is in non-secure state. Add a warning in SPL to indicate the problem
to users.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

board/freescale/imx8ulp_evk/spl.c
... ... @@ -169,6 +169,8 @@
169 169 /* Asks S400 to release CAAM for A35 core */
170 170 ret = ahab_release_caam(7, &res);
171 171 if (!ret) {
  172 + if (((res >> 8) & 0xff) == ELE_NON_SECURE_STATE_FAILURE_IND)
  173 + printf("Warning: CAAM is in non-secure state, 0x%x\n", res);
172 174  
173 175 /* Only two UCLASS_MISC devicese are present on the platform. There
174 176 * are MU and CAAM. Here we initialize CAAM once it's released by