[U-Boot] [PATCH v1 1/8] km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h

Valentin Longchamp valentin.longchamp at keymile.com
Fri Jul 26 12:02:28 CEST 2013


It can be set to a different value for kmp204x, because we are
restricted to SRAM.

Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
---
 include/configs/km/keymile-common.h | 2 --
 include/configs/km/km83xx-common.h  | 2 ++
 include/configs/km82xx.h            | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h
index 3b15c4e..ab4e2f8 100644
--- a/include/configs/km/keymile-common.h
+++ b/include/configs/km/keymile-common.h
@@ -98,8 +98,6 @@
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
-
 /* UBI Support for all Keymile boards */
 #define CONFIG_CMD_UBI
 #define CONFIG_RBTREE
diff --git a/include/configs/km/km83xx-common.h b/include/configs/km/km83xx-common.h
index eb0e5b6..cdfa83a 100644
--- a/include/configs/km/km83xx-common.h
+++ b/include/configs/km/km83xx-common.h
@@ -80,6 +80,8 @@
 
 /* Reserve 768 kB for Mon */
 #define CONFIG_SYS_MONITOR_LEN		(768 * 1024)
+/* Reserve 4 MB for malloc */
+#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
 
 /*
  * Initial RAM Base Address Setup
diff --git a/include/configs/km82xx.h b/include/configs/km82xx.h
index 3c2117f..ae36768 100644
--- a/include/configs/km82xx.h
+++ b/include/configs/km82xx.h
@@ -225,6 +225,7 @@
 #define CONFIG_SYS_RAMBOOT
 #endif
 
+#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
 #define CONFIG_SYS_MONITOR_LEN		(768 << 10)
 
 #define CONFIG_ENV_IS_IN_FLASH
-- 
1.8.0.1



More information about the U-Boot mailing list