Patchwork [U-Boot,V2,RESEND,17/24] SPEAr: Correct the definition of CONFIG_SYS_MONITOR_BASE

login
register
mail settings
Submitter Amit Virdi
Date May 7, 2012, 7:36 a.m.
Message ID <ab77378c8002327405ae9241a8b0f598c287be61.1336376035.git.amit.virdi@st.com>
Download mbox | patch
Permalink /patch/157263/
State Accepted
Delegated to: Stefan Roese
Headers show

Comments

Amit Virdi - May 7, 2012, 7:36 a.m.
From: Vipin Kumar <vipin.kumar@st.com>

The below text is copy pasted from README
- CONFIG_SYS_MONITOR_BASE:
	Physical start address of boot monitor code (set by
	make config files to be same as the text base address
	(TEXT_BASE) used when linking) - same as
	CONFIG_SYS_FLASH_BASE when booting from flash.

This patch corrects the definition of CONFIG_SYS_MONITOR_BASE and sets it to
TEXT_BASE

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
---
 include/configs/spear-common.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 8416bbc..e2a5155 100644
--- a/include/configs/spear-common.h
+++ b/include/configs/spear-common.h
@@ -162,8 +162,7 @@ 
 						"0x4C0000; bootm 0x1600000"
 #endif
 
-#define CONFIG_SYS_MONITOR_BASE			CONFIG_SYS_FLASH_BASE
-#define CONFIG_ENV_ADDR				(CONFIG_SYS_MONITOR_BASE + \
+#define CONFIG_ENV_ADDR				(CONFIG_SYS_FLASH_BASE + \
 						CONFIG_SYS_MONITOR_LEN)
 #elif defined(CONFIG_ENV_IS_IN_NAND)
 /*
@@ -200,6 +199,7 @@ 
 
 
 #define CONFIG_ENV_SIZE				0x02000
+#define CONFIG_SYS_MONITOR_BASE			CONFIG_SYS_TEXT_BASE
 
 /* Miscellaneous configurable options */
 #define CONFIG_ARCH_CPU_INIT