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

Alessandro Rubini rubini-list at gnudd.com
Sun Apr 17 10:27:54 CEST 2011


From: Alessandro Rubini <rubini at gnudd.com>

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

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
-- 
1.5.6.5


More information about the U-Boot mailing list