diff options
author | Vinitha V Pillai <vinitha.pillai@nxp.com> | 2018-01-04 08:58:46 (GMT) |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2018-01-10 04:04:10 (GMT) |
commit | 7dabe52605d07dee782e2734d278956ef263c7ab (patch) | |
tree | 2f0143c28f07e80250cf32dfa4941c66cf2afe2c /include | |
parent | 694f7c31e327825574dfee102d50b88494792dcd (diff) | |
download | u-boot-7dabe52605d07dee782e2734d278956ef263c7ab.tar.xz |
ls1088ardb: Add SD Secure boot target support
Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ls1088a_common.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/configs/ls1088a_common.h b/include/configs/ls1088a_common.h index ef66119..85d304b 100644 --- a/include/configs/ls1088a_common.h +++ b/include/configs/ls1088a_common.h @@ -259,7 +259,20 @@ unsigned long long get_qixis_addr(void); #define CONFIG_SYS_SPL_MALLOC_SIZE 0x00100000 #define CONFIG_SYS_SPL_MALLOC_START 0x80200000 -#define CONFIG_SYS_MONITOR_LEN (512 * 1024) + +#ifdef CONFIG_SECURE_BOOT +#define CONFIG_U_BOOT_HDR_SIZE (16 << 10) +/* + * HDR would be appended at end of image and copied to DDR along + * with U-Boot image. Here u-boot max. size is 512K. So if binary + * size increases then increase this size in case of secure boot as + * it uses raw u-boot image instead of fit image. + */ +#define CONFIG_SYS_MONITOR_LEN (0x100000 + CONFIG_U_BOOT_HDR_SIZE) +#else +#define CONFIG_SYS_MONITOR_LEN 0x100000 +#endif /* ifdef CONFIG_SECURE_BOOT */ + #endif #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ |