summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSaksham Jain <saksham.jain@nxp.com>2016-03-23 10:54:36 (GMT)
committerYork Sun <york.sun@nxp.com>2016-03-29 15:46:21 (GMT)
commit216e93a18565c53818c1aee7664401f994b3f3eb (patch)
tree39b598b5485b4457e3b0eed2cb9f17eafdafb510 /arch
parentfcfdb6d580ab108f4496f1ef7bd7ed260488ffde (diff)
downloadu-boot-fsl-qoriq-216e93a18565c53818c1aee7664401f994b3f3eb.tar.xz
armv8: ls2080: Add bootscript header addr for secure boot
During secure boot, Linux image along with other images are validated using bootscript. This bootscript also needs to be validated before it executes. This requires a header for bootscript. When secure boot is enabled, default bootcmd is changed to first validate bootscript using the header and then execute the script. For ls2080, NOR memory map is different from other ARM SoCs. So a new address on NOR is used for this bootscript header (0x583920000). The Bootscript address is mentioned in this header along with addresses of other images. 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/include/asm/fsl_secure_boot.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
index b745194..5575934 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -58,7 +58,11 @@
"setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
/* The address needs to be modified according to NOR memory map */
+#if defined(CONFIG_LS2080A) || defined(CONFIG_LS2085A)
+#define CONFIG_BOOTSCRIPT_HDR_ADDR 0x583920000
+#else
#define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
+#endif
#include <config_fsl_chain_trust.h>
#endif /* #ifdef CONFIG_CHAIN_OF_TRUST */