diff mbox

[U-Boot,4/4] arm: rmobile: gose: Remove dram_init_banksize function

Message ID 1416196845-8317-4-git-send-email-nobuhiro.iwamatsu.yj@renesas.com
State Accepted
Delegated to: Nobuhiro Iwamatsu
Headers show

Commit Message

Nobuhiro Iwamatsu Nov. 17, 2014, 4 a.m. UTC
Gose board is defined CONFIG_SYS_SDRAM_BASE, and this can use a basic function of
dram_init_banksize instead.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
 board/renesas/gose/gose.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox

Patch

diff --git a/board/renesas/gose/gose.c b/board/renesas/gose/gose.c
index 2cef701..715fba0 100644
--- a/board/renesas/gose/gose.c
+++ b/board/renesas/gose/gose.c
@@ -93,7 +93,7 @@  void arch_preboot_os(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = GOSE_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
 
 	/* Init PFC controller */
 	r8a7793_pinmux_init();
@@ -161,12 +161,6 @@  const struct rmobile_sysinfo sysinfo = {
 	CONFIG_RMOBILE_BOARD_STRING
 };
 
-void dram_init_banksize(void)
-{
-	gd->bd->bi_dram[0].start = GOSE_SDRAM_BASE;
-	gd->bd->bi_dram[0].size = GOSE_SDRAM_SIZE;
-}
-
 void reset_cpu(ulong addr)
 {
 	u8 val;