SECURE BOOT: Halt execution when secure boot fail
authorSaksham Jain <saksham.jain@nxp.com>
Wed, 23 Mar 2016 10:54:44 +0000 (16:24 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 29 Mar 2016 15:46:23 +0000 (08:46 -0700)
commitc4666cf6954a28ade5a8550505d5bc25dc7f92d7
tree5184777122a49b548bc89ca143f7a8a9df976d41
parent2bfe4890856c94d939e193999dccdc75afc5c5bd
SECURE BOOT: Halt execution when secure boot fail

In case of fatal failure during secure boot execution (e.g. header
not found), reset is asserted to stop execution. If the RESET_REQ
is not tied to HRESET, this allows the execution to continue.

Add esbh_halt() after the reset to make sure execution stops.

Signed-off-by: Aneesh Bansal <aneesh.bansal@nxp.com>
Signed-off-by: Saksham Jain <saksham.jain@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/common/cmd_esbc_validate.c
board/freescale/common/fsl_validate.c
include/fsl_validate.h