summaryrefslogtreecommitdiff
path: root/board/freescale/mx6q_arm2/flash_header.S
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/mx6q_arm2/flash_header.S')
-rw-r--r--board/freescale/mx6q_arm2/flash_header.S10
1 files changed, 9 insertions, 1 deletions
diff --git a/board/freescale/mx6q_arm2/flash_header.S b/board/freescale/mx6q_arm2/flash_header.S
index c6cb83f7613..02d07379ab2 100644
--- a/board/freescale/mx6q_arm2/flash_header.S
+++ b/board/freescale/mx6q_arm2/flash_header.S
@@ -49,11 +49,19 @@ reserv1: .word 0x0
dcd_ptr: .word dcd_hdr
boot_data_ptr: .word boot_data
self_ptr: .word ivt_header
-app_code_csf: .word 0x0
+#ifdef CONFIG_SECURE_BOOT
+app_code_csf: .word __hab_data
+#else
+app_code_csf: .word 0
+#endif
reserv2: .word 0x0
boot_data: .word TEXT_BASE
+#ifdef CONFIG_SECURE_BOOT
+image_len: .word __hab_data_end - TEXT_BASE
+#else
image_len: .word _end_of_copy - TEXT_BASE + CONFIG_FLASH_HEADER_OFFSET
+#endif
plugin: .word 0x0
#if defined CONFIG_MX6DL_DDR3