[U-Boot] [PATCH 2/3] ARM: zynq: Extend malloc size

Michal Simek michal.simek at xilinx.com
Tue Dec 1 14:35:51 CET 2015


SPL DM MMC FAT requires more malloc space(3k fat buffers + dm)
that it is available now. Extend SPL malloc space.

Current OCM layout:
0xffff0000 - 0xfff2000 - Full malloc space
0xffff2000 - 0xffff300 - Stack location
0xfffff300 - CONFIG_SYS_MALLOC_F_LEN - Early malloc space
0xfffffd00 - sizeof(GD) - GD
0xfffffe00 - 0xffffffff - SoC specific boot code

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 include/configs/zynq-common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index d499656bb592..0ab60839b6cf 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -369,7 +369,7 @@
 
 /* On the top of OCM space */
 #define CONFIG_SYS_SPL_MALLOC_START	OCM_HIGH_ADDR
-#define CONFIG_SYS_SPL_MALLOC_SIZE	0x1000
+#define CONFIG_SYS_SPL_MALLOC_SIZE	0x2000
 
 /*
  * SPL stack position - and stack goes down
-- 
1.9.1



More information about the U-Boot mailing list