summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2022-10-24 10:25:42 +0800
committerYe Li <ye.li@nxp.com>2022-10-24 11:39:30 +0800
commit205680f9f4baabc030050ae14e7b2bb700a3ae70 (patch)
tree0b7b2e1ac043eb057940cc3dca58c6e908382b82
parentf405551dcc12ef332c06da91ae30095f279015ef (diff)
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>
-rw-r--r--board/freescale/imx8ulp_evk/spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/imx8ulp_evk/spl.c b/board/freescale/imx8ulp_evk/spl.c
index 40555f45be..0cbce593fd 100644
--- a/board/freescale/imx8ulp_evk/spl.c
+++ b/board/freescale/imx8ulp_evk/spl.c
@@ -169,6 +169,8 @@ void spl_board_init(void)
/* Asks S400 to release CAAM for A35 core */
ret = ahab_release_caam(7, &res);
if (!ret) {
+ if (((res >> 8) & 0xff) == ELE_NON_SECURE_STATE_FAILURE_IND)
+ printf("Warning: CAAM is in non-secure state, 0x%x\n", res);
/* Only two UCLASS_MISC devicese are present on the platform. There
* are MU and CAAM. Here we initialize CAAM once it's released by