diff mbox

[U-Boot,v4,02/11] km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h

Message ID 1382089644-14595-3-git-send-email-valentin.longchamp@keymile.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Valentin Longchamp Oct. 18, 2013, 9:47 a.m. UTC
It must be set to a different value for the later add kmp204x
architecture, because we are restricted to 1MB SRAM.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>

---
Changes in v4: None
Changes in v3:
- Add SYS_MALLOC_LEN to km_arm.h as well, as it was omitted before.

Changes in v2: None

 include/configs/km/keymile-common.h | 2 --
 include/configs/km/km-powerpc.h     | 3 +++
 include/configs/km/km_arm.h         | 3 +++
 3 files changed, 6 insertions(+), 2 deletions(-)

Comments

York Sun Oct. 18, 2013, 6:20 p.m. UTC | #1
On 10/18/2013 02:47 AM, Valentin Longchamp wrote:
> It must be set to a different value for the later add kmp204x
> architecture, because we are restricted to 1MB SRAM.
> 
> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
> 
> ---
> Changes in v4: None
> Changes in v3:
> - Add SYS_MALLOC_LEN to km_arm.h as well, as it was omitted before.
> 
> Changes in v2: None
> 

Applied to 85xx/next, pending merge to 85xx/master.

York
diff mbox

Patch

diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h
index 91ca480..a30c050 100644
--- a/include/configs/km/keymile-common.h
+++ b/include/configs/km/keymile-common.h
@@ -80,8 +80,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/km-powerpc.h b/include/configs/km/km-powerpc.h
index 8ee0ac6..15fef24 100644
--- a/include/configs/km/km-powerpc.h
+++ b/include/configs/km/km-powerpc.h
@@ -32,6 +32,9 @@ 
 
 #define CONFIG_SYS_LOAD_ADDR	0x100000	/* default load address */
 
+/* Reserve 4 MB for malloc */
+#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
+
 /******************************************************************************
  * (PRAM usage)
  * ... -------------------------------------------------------
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index e0368cb..75b6250 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -54,6 +54,9 @@ 
 #define CONFIG_ENV_SPI_MODE		SPI_MODE_3
 #endif
 
+/* Reserve 4 MB for malloc */
+#define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
+
 #include "asm/arch/config.h"
 
 #define CONFIG_SYS_TEXT_BASE	0x07d00000	/* code address before reloc */