[PATCH u-boot 04/12] aspeed: remove CONFIG_SYS_INIT_RAM_END

Cédric Le Goater clg at kaod.org
Fri Oct 7 08:26:37 AEDT 2016


Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
 include/configs/ast-common.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h
index 7725c1af173f..a93dc61f3730 100644
--- a/include/configs/ast-common.h
+++ b/include/configs/ast-common.h
@@ -32,8 +32,10 @@
 #define CONFIG_SYS_SDRAM_BASE		AST_DRAM_BASE
 #define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_INIT_RAM_SIZE	(32*1024)
-#define CONFIG_SYS_INIT_RAM_END		(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE)
-#define CONFIG_SYS_INIT_SP_ADDR 	(CONFIG_SYS_INIT_RAM_END - GENERATED_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET				\
+	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR					\
+	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
 
 #define CONFIG_NR_DRAM_BANKS		1
 
-- 
2.7.4



More information about the openbmc mailing list