diff options
author | Daniel Allred | 2016-09-02 00:40:23 -0500 |
---|---|---|
committer | Tom Rini | 2016-10-02 08:09:57 -0400 |
commit | 32d333f2f068c77024631e54b3edc1c992d964a4 (patch) | |
tree | 5d4fd692ec714f4a39af57088b08109959751360 /include/configs/ti_omap5_common.h | |
parent | 501f0ef304549edf41bbcec0e6da008d92cbdf0c (diff) |
ti_omap5_common: mark region of DRAM protected on HS parts
If the ending portion of the DRAM is reserved for secure
world use, then u-boot cannot use this memory for its relocation
purposes. To prevent issues, we mark this memory as PRAM and this
prevents it from being used by u-boot at all.
Signed-off-by: Daniel Allred <d-allred@ti.com>
Diffstat (limited to 'include/configs/ti_omap5_common.h')
-rw-r--r-- | include/configs/ti_omap5_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index ea11226620d..a483850d190 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -144,6 +144,14 @@ */ #define TI_OMAP5_SECURE_BOOT_RESV_SRAM_SZ 0x1000 #define CONFIG_SPL_TEXT_BASE 0x40301350 +/* If no specific start address is specified then the secure EMIF + * region will be placed at the end of the DDR space. In order to prevent + * the main u-boot relocation from clobbering that memory and causing a + * firewall violation, we tell u-boot that memory is protected RAM (PRAM) + */ +#if (CONFIG_TI_SECURE_EMIF_REGION_START == 0) +#define CONFIG_PRAM (CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE) >> 10 +#endif #else /* * For all booting on GP parts, the flash loader image is |