From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 2 Sep 2016 10:54:47 -0400 Subject: [U-Boot] [PATCH 4/5] ti_omap5_common: mark region of DRAM protected on HS parts In-Reply-To: <1472794824-6032-5-git-send-email-d-allred@ti.com> References: <1472794824-6032-1-git-send-email-d-allred@ti.com> <1472794824-6032-5-git-send-email-d-allred@ti.com> Message-ID: <20160902145447.GX4990@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Sep 02, 2016 at 12:40:23AM -0500, Daniel Allred wrote: > 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 > --- > include/configs/ti_omap5_common.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h > index e42c88e..70fdc6e 100644 > --- a/include/configs/ti_omap5_common.h > +++ b/include/configs/ti_omap5_common.h > @@ -146,6 +146,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 Can you move PRAM to Kconfig please? Thinking about this more, I think what you want for the size option is CONFIG_PRAM and then to use that to expand out the size. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: