From fa2f81b06f666710c756d25297d7a9ca48c65935 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 26 Aug 2016 13:30:43 -0400 Subject: TI: Rework SRAM definitions and maximums On all TI platforms the ROM defines a "downloaded image" area at or near the start of SRAM which is followed by a reserved area. As it is at best bad form and at worst possibly harmful in corner cases to write in this reserved area, we stop doing that by adding in the define NON_SECURE_SRAM_IMG_END to say where the end of the downloaded image area is and make SRAM_SCRATCH_SPACE_ADDR be one kilobyte before this. At current we define the end of scratch space at 0x228 bytes past the start of scratch space this this gives us a lot of room to grow. As these scratch uses are non-optional today, all targets are modified to respect this boundary. Tested on OMAP4 Pandaboard, OMAP3 Beagle xM Cc: Albert Aribaud Cc: Nagendra T S Cc: Vaibhav Hiremath Cc: Lokesh Vutla Cc: Felipe Balbi Cc: Igor Grinberg Cc: Nikita Kiryanov Cc: Paul Kocialkowski Cc: Enric Balletbo i Serra Cc: Adam Ford Cc: Steve Sakoman Cc: Stefan Roese Cc: Thomas Weber Cc: Hannes Schmelzer Cc: Thomas Chou Cc: Masahiro Yamada Cc: Simon Glass Cc: Joe Hershberger Cc: Sam Protsenko Cc: Heiko Schocher Cc: Samuel Egli Cc: Michal Simek Cc: Wolfgang Denk Cc: Mateusz Kulikowski Cc: Ben Whitten Cc: Stefano Babic Cc: Bin Meng Cc: Sekhar Nori Cc: Mugunthan V N Cc: "B, Ravi" Cc: "Matwey V. Kornilov" Cc: Ladislav Michl Cc: Ash Charles Cc: "Kipisz, Steven" Cc: Daniel Allred Signed-off-by: Tom Rini Tested-by: Lokesh Vutla Acked-by: Lokesh Vutla Tested-by: Ladislav Michl --- include/configs/kc1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/configs/kc1.h') diff --git a/include/configs/kc1.h b/include/configs/kc1.h index 8b957996a7..c1a9e643ec 100644 --- a/include/configs/kc1.h +++ b/include/configs/kc1.h @@ -119,7 +119,8 @@ #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_TEXT_BASE 0x40300000 -#define CONFIG_SPL_MAX_SIZE (48 * 1024) +#define CONFIG_SPL_MAX_SIZE (SRAM_SCRATCH_SPACE_ADDR - \ + CONFIG_SPL_TEXT_BASE) #define CONFIG_SPL_BSS_START_ADDR 0x80000000 #define CONFIG_SPL_BSS_MAX_SIZE (512 * 1024) #define CONFIG_SYS_SPL_MALLOC_START 0x80208000 -- cgit