From: Jolly Shah Date: Tue, 30 Jan 2018 19:31:53 +0000 (-0800) Subject: zynqmp: Use DDR memory when DEBUG is enabled X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3077f8d96a6d8b92e6a6a8c9e57fefeed3a8a92f;p=project%2Fbcm63xx%2Fatf.git 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 --- 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