diff mbox

[U-Boot,v2,8/9] sandbox: config: Enable pre-relocation malloc()

Message ID 1404775168-17884-9-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 7, 2014, 11:19 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>
---

Changes in v2: None

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

Patch

diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 12b69d9..e5dca7d 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -16,6 +16,8 @@ 
 
 #endif
 
+#define CONFIG_MALLOC_F_ADDR			0x0010000
+
 #define CONFIG_IO_TRACE
 #define CONFIG_CMD_IOTRACE
 
@@ -68,8 +70,9 @@ 
 #define CONFIG_EFI_PARTITION
 
 /*
- * Size of malloc() pool, although we don't actually use this yet.
+ * Size of malloc() pool, before and after relocation
  */
+#define CONFIG_SYS_MALLOC_F_LEN	(1 << 10)
 #define CONFIG_SYS_MALLOC_LEN		(32 << 20)	/* 32MB  */
 
 #define CONFIG_SYS_HUSH_PARSER