diff mbox

[U-Boot,RFC,11/22] sandbox: config: Enable pre-relocation malloc()

Message ID 1400966481-14131-12-git-send-email-sjg@chromium.org
State RFC
Headers show

Commit Message

Simon Glass May 24, 2014, 9:21 p.m. UTC
Enable this for sandbox so that we will be able to use driver model before
relocation.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/configs/sandbox.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index fdc8b75..86ee70f 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -115,6 +115,10 @@ 
 #define CONFIG_SYS_MONITOR_BASE	0
 #define CONFIG_NR_DRAM_BANKS		1
 
+#define CONFIG_SYS_MALLOC_F_LEN	1024
+#define CONFIG_SYS_MALLOC_F_BASE	(CONFIG_SYS_SDRAM_SIZE - \
+						CONFIG_SYS_MALLOC_F_LEN)
+
 #define CONFIG_BAUDRATE			115200
 #define CONFIG_SYS_BAUDRATE_TABLE	{4800, 9600, 19200, 38400, 57600,\
 					115200}