Patchwork [U-Boot,1/2] S5P: smdkc100: fix for relocation

login
register
mail settings
Submitter Minkyu Kang
Date Nov. 22, 2010, 11:33 a.m.
Message ID <4CEA5526.8090303@samsung.com>
Download mbox | patch
Permalink /patch/72549/
State Accepted
Commit 98877c3c0efacb5c61068280b6441a61e2dc3a24
Delegated to: Minkyu Kang
Headers show

Comments

Minkyu Kang - Nov. 22, 2010, 11:33 a.m.
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 board/samsung/smdkc100/smdkc100.c |   10 +++++++---
 include/configs/smdkc100.h        |    2 ++
 2 files changed, 9 insertions(+), 3 deletions(-)
Minkyu Kang - Nov. 29, 2010, 11:46 p.m.
On 22 November 2010 20:33, Minkyu Kang <mk7.kang@samsung.com> wrote:
> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>  board/samsung/smdkc100/smdkc100.c |   10 +++++++---
>  include/configs/smdkc100.h        |    2 ++
>  2 files changed, 9 insertions(+), 3 deletions(-)
>

applied to u-boot-samsung

Patch

diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c
index 31e8d9e..d3189f6 100644
--- a/board/samsung/smdkc100/smdkc100.c
+++ b/board/samsung/smdkc100/smdkc100.c
@@ -65,13 +65,17 @@  int board_init(void)
 
 int dram_init(void)
 {
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size = get_ram_size((long *)PHYS_SDRAM_1,
-						PHYS_SDRAM_1_SIZE);
+	gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
 
 	return 0;
 }
 
+void dram_init_banksize(void)
+{
+	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
+}
+
 #ifdef CONFIG_DISPLAY_BOARDINFO
 int checkboard(void)
 {
diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h
index e36b262..fb8b43c 100644
--- a/include/configs/smdkc100.h
+++ b/include/configs/smdkc100.h
@@ -231,6 +231,8 @@ 
 
 #define CONFIG_DOS_PARTITION		1
 
+#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_LOAD_ADDR - 0x1000000)
+
 /*
  * Ethernet Contoller driver
  */