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

login
register
mail settings
Submitter Minkyu Kang
Date Nov. 22, 2010, 11:34 a.m.
Message ID <4CEA5540.3010601@samsung.com>
Download mbox | patch
Permalink /patch/72550/
State Accepted
Commit 177feff303538c6cf8caaeb34e5243ca95563e1c
Delegated to: Minkyu Kang
Headers show

Comments

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

applied to u-boot-samsung

Patch

diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 0b09eba..581935d 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -43,14 +43,20 @@  int board_init(void)
 
 int dram_init(void)
 {
+	gd->ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE +
+			PHYS_SDRAM_3_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;
 	gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
 	gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
 	gd->bd->bi_dram[2].start = PHYS_SDRAM_3;
 	gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-
-	return 0;
 }
 
 #ifdef CONFIG_DISPLAY_BOARDINFO
diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
index 541aec0..f53e798 100644
--- a/include/configs/s5p_goni.h
+++ b/include/configs/s5p_goni.h
@@ -217,4 +217,6 @@ 
 
 #define CONFIG_DOS_PARTITION		1
 
+#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_LOAD_ADDR - 0x1000000)
+
 #endif	/* __CONFIG_H */