zynqmp: Use DDR memory when DEBUG is enabled
authorJolly Shah <jollys@xilinx.com>
Tue, 30 Jan 2018 19:31:53 +0000 (11:31 -0800)
committerJolly Shah <jollys@xilinx.com>
Thu, 15 Mar 2018 17:24:00 +0000 (10:24 -0700)
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 <jollys@xilinx.com>
plat/xilinx/zynqmp/include/platform_def.h

index b446235484321609ef433aa76292cdf215ea19e1..e74b9bbfd9d2c1cc2f72738c6824f831d016c2d2 100644 (file)
  * 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