Patchwork [U-Boot,07/18] Blackfin: post: setup default CONFIG_SYS_POST_WORD_ADDR

login
register
mail settings
Submitter Mike Frysinger
Date June 28, 2011, 7:36 p.m.
Message ID <1309289787-7846-8-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/102465/
State Accepted
Commit 272d2fc2f5184740e5890e9afeb9fd78d308e51a
Delegated to: Mike Frysinger
Headers show

Comments

Mike Frysinger - June 28, 2011, 7:36 p.m.
Set the default post word location to an L1 data location for all
Blackfin parts so things "just work" for most people.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/blackfin/include/asm/config.h |    3 +++
 include/configs/bf537-stamp.h      |    1 -
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/blackfin/include/asm/config.h b/arch/blackfin/include/asm/config.h
index 89814cd..bc3c252 100644
--- a/arch/blackfin/include/asm/config.h
+++ b/arch/blackfin/include/asm/config.h
@@ -121,6 +121,9 @@ 
 #ifndef CONFIG_SYS_MEMTEST_END
 # define CONFIG_SYS_MEMTEST_END (CONFIG_STACKBASE - 8192 + 4)
 #endif
+#ifndef CONFIG_SYS_POST_WORD_ADDR
+# define CONFIG_SYS_POST_WORD_ADDR (L1_DATA_B_SRAM + L1_DATA_B_SRAM_SIZE - 4)
+#endif
 
 /* Check to make sure everything fits in external RAM */
 #if CONFIG_SYS_MAX_RAM_SIZE && \
diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h
index c31e914..da14a4f 100644
--- a/include/configs/bf537-stamp.h
+++ b/include/configs/bf537-stamp.h
@@ -260,7 +260,6 @@ 
 #define FLASH_START_POST_BLOCK	11	/* Should > = 11 */
 #define FLASH_END_POST_BLOCK	71	/* Should < = 71 */
 #endif
-#define CONFIG_SYS_POST_WORD_ADDR	0xFF903FFC
 
 /* These are for board tests */
 #if 0