From: Thomas Chou <thomas@wytron.com.tw>
Date: Wed, 4 Nov 2015 05:28:29 +0000 (+0800)
Subject: nios2: trim CONFIG_SYS_MALLOC_LEN
X-Git-Tag: v2025.01-rc5-pxa1908~11295^2~7
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=2925e2b9ee324f2060fa6c01e4fc54b5967ed85f;p=u-boot.git

nios2: trim CONFIG_SYS_MALLOC_LEN

Trim CONFIG_SYS_MALLOC_LEN size, because CONFIG_ENV_SIZE
is included to total memory allocation in common.h,

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Chin Liang See <clsee@altera.com>
---

diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
index 3a559f15fc..f6871708dc 100644
--- a/include/configs/nios2-generic.h
+++ b/include/configs/nios2-generic.h
@@ -83,7 +83,7 @@
 #define CONFIG_SYS_MONITOR_BASE	(CONFIG_SYS_SDRAM_BASE + \
 					 CONFIG_SYS_SDRAM_SIZE - \
 					 CONFIG_SYS_MONITOR_LEN)
-#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 0x20000)
+#define CONFIG_SYS_MALLOC_LEN		0x20000
 
 /*
  * MISC