]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: rmobile: alt: Remove dram_init_banksize function
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Mon, 10 Nov 2014 04:58:50 +0000 (13:58 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 17 Nov 2014 04:22:27 +0000 (13:22 +0900)
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>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/alt/alt.c

index 039cb376d39ddce971024311dae2d611342f942d..523c5f131fa0330a699c20392da622f5a61a9028 100644 (file)
@@ -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;