[U-Boot] [PATCH 1/4] arm: rmobile: alt: Remove dram_init_banksize function

Alt 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/alt/alt.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/board/renesas/alt/alt.c b/board/renesas/alt/alt.c index 039cb37..523c5f1 100644 --- a/board/renesas/alt/alt.c +++ b/board/renesas/alt/alt.c @@ -88,7 +88,7 @@ void arch_preboot_os(void) int board_init(void) { /* adress of boot parameters */ - gd->bd->bi_boot_params = ALT_SDRAM_BASE + 0x100; + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
/* Init PFC controller */ r8a7794_pinmux_init(); @@ -156,12 +156,6 @@ const struct rmobile_sysinfo sysinfo = { CONFIG_RMOBILE_BOARD_STRING };
-void dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = ALT_SDRAM_BASE; - gd->bd->bi_dram[0].size = ALT_SDRAM_SIZE; -} - void reset_cpu(ulong addr) { u8 val;

Koesch 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/koelsch/koelsch.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/board/renesas/koelsch/koelsch.c b/board/renesas/koelsch/koelsch.c index 908bc60..244bc58 100644 --- a/board/renesas/koelsch/koelsch.c +++ b/board/renesas/koelsch/koelsch.c @@ -90,7 +90,7 @@ void arch_preboot_os(void) int board_init(void) { /* adress of boot parameters */ - gd->bd->bi_boot_params = KOELSCH_SDRAM_BASE + 0x100; + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
/* Init PFC controller */ r8a7791_pinmux_init(); @@ -173,12 +173,6 @@ const struct rmobile_sysinfo sysinfo = { CONFIG_RMOBILE_BOARD_STRING };
-void dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = KOELSCH_SDRAM_BASE; - gd->bd->bi_dram[0].size = KOELSCH_SDRAM_SIZE; -} - void reset_cpu(ulong addr) { u8 val;

Lager 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/lager/lager.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/board/renesas/lager/lager.c b/board/renesas/lager/lager.c index 99a298a..93273b2 100644 --- a/board/renesas/lager/lager.c +++ b/board/renesas/lager/lager.c @@ -93,7 +93,7 @@ DECLARE_GLOBAL_DATA_PTR; int board_init(void) { /* adress of boot parameters */ - gd->bd->bi_boot_params = LAGER_SDRAM_BASE + 0x100; + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
/* Init PFC controller */ r8a7790_pinmux_init(); @@ -174,12 +174,6 @@ const struct rmobile_sysinfo sysinfo = { CONFIG_RMOBILE_BOARD_STRING };
-void dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = LAGER_SDRAM_BASE; - gd->bd->bi_dram[0].size = LAGER_SDRAM_SIZE; -} - void reset_cpu(ulong addr) { u8 val;

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 --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;
participants (1)
-
Nobuhiro Iwamatsu