From 3077f8d96a6d8b92e6a6a8c9e57fefeed3a8a92f Mon Sep 17 00:00:00 2001 From: Jolly Shah Date: Tue, 30 Jan 2018 11:31:53 -0800 Subject: [PATCH] zynqmp: Use DDR memory when DEBUG is enabled Define default DDR location to which ATF has to compiled if DEBUG option is enabled. This is required now, as the ATF cant fit in OCM with DEBUG option enabled. The default value is 0x1000 and can be used till 0x7ffff. User can still override as per wish/requirement using current commandline options. Signed-off-by: Jolly Shah --- plat/xilinx/zynqmp/include/platform_def.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plat/xilinx/zynqmp/include/platform_def.h b/plat/xilinx/zynqmp/include/platform_def.h index b4462354..e74b9bbf 100644 --- a/plat/xilinx/zynqmp/include/platform_def.h +++ b/plat/xilinx/zynqmp/include/platform_def.h @@ -34,9 +34,14 @@ * little space for growth. */ #ifndef ZYNQMP_ATF_MEM_BASE +#if !DEBUG # define BL31_BASE 0xfffea000 # define BL31_LIMIT 0xffffffff #else +# define BL31_BASE 0x1000 +# define BL31_LIMIT 0x7ffff +#endif +#else # define BL31_BASE (ZYNQMP_ATF_MEM_BASE) # define BL31_LIMIT (ZYNQMP_ATF_MEM_BASE + ZYNQMP_ATF_MEM_SIZE - 1) # ifdef ZYNQMP_ATF_MEM_PROGBITS_SIZE -- 2.30.2