summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@nxp.com>2017-08-28 06:28:02 (GMT)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2017-08-29 11:04:13 (GMT)
commitdf0303c2f44367c5e3de050fb69c325f894e6174 (patch)
treebd151a579cc87103d5509d76dd32f0fe6403593e /board
parent30c050936824c62bd0afbee089a559109606292f (diff)
downloadu-boot-df0303c2f44367c5e3de050fb69c325f894e6174.tar.xz
arm64: ls1043ardb: Add distro secure boot support
Enable validation of boot.scr script prior to its execution dependent on "secureboot" flag in environment. Enable fall back option to nor/qspi boot in case of secure boot. Also enable "secureboot=y" flag in environment for ARM based platforms instead of bootcmd. Signed-off-by: Sumit Garg <sumit.garg@nxp.com> Tested-by: Vinitha Pillai <vinitha.pillai@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/common/fsl_chain_of_trust.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c
index 2cd4fba..dfe5d20 100644
--- a/board/freescale/common/fsl_chain_of_trust.c
+++ b/board/freescale/common/fsl_chain_of_trust.c
@@ -81,7 +81,13 @@ int fsl_setenv_chain_of_trust(void)
* bootcmd = CONFIG_CHAIN_BOOT_CMD (Validate and execute Boot script)
*/
setenv("bootdelay", "0");
+
+#ifdef CONFIG_ARM
+ setenv("secureboot", "y");
+#else
setenv("bootcmd", CONFIG_CHAIN_BOOT_CMD);
+#endif
+
return 0;
}
#endif