diff mbox

[U-Boot,3/3] versatile: support relocation

Message ID 8b68a1d115867d275d8da1e3fe34a5a6bba3bae4.1303028702.git.rubini@gnudd.com
State Superseded
Headers show

Commit Message

Alessandro Rubini April 17, 2011, 8:27 a.m. UTC
From: Alessandro Rubini <rubini@gnudd.com>

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
---
 board/armltd/versatile/versatile.c |    2 ++
 include/configs/versatile.h        |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/board/armltd/versatile/versatile.c b/board/armltd/versatile/versatile.c
index 6e836dd..deca47f 100644
--- a/board/armltd/versatile/versatile.c
+++ b/board/armltd/versatile/versatile.c
@@ -88,6 +88,8 @@  int misc_init_r (void)
 ******************************/
 int dram_init (void)
 {
+	gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE,
+				    CONFIG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
diff --git a/include/configs/versatile.h b/include/configs/versatile.h
index 45d8434..d883725 100644
--- a/include/configs/versatile.h
+++ b/include/configs/versatile.h
@@ -168,6 +168,9 @@ 
 #define PHYS_SDRAM_1		0x00000000	/* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE	0x08000000	/* 128 MB */
 #define PHYS_FLASH_SIZE		0x04000000	/* 64MB */
+#define CONFIG_SYS_SDRAM_BASE	0x00000000
+#define CONFIG_SYS_SDRAM_SIZE	PHYS_SDRAM_1_SIZE
+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000)
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization