diff mbox

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

Message ID 1475789205-19618-5-git-send-email-clg@kaod.org
State Accepted, archived
Headers show

Commit Message

Cédric Le Goater Oct. 6, 2016, 9:26 p.m. UTC
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 include/configs/ast-common.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Joel Stanley Oct. 10, 2016, 6:22 a.m. UTC | #1
On Fri, Oct 7, 2016 at 8:26 AM, Cédric Le Goater <clg@kaod.org> wrote:
> Signed-off-by: Cédric Le Goater <clg@kaod.org>

Reviewed-by: Joel Stanley <joel@jms.id.au>

> ---
>  include/configs/ast-common.h | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

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