]> git.sur5r.net Git - u-boot/commitdiff
arm/km: remove unused code
authorHolger Brunck <holger.brunck@keymile.com>
Thu, 9 Aug 2012 01:37:47 +0000 (01:37 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Mon, 3 Sep 2012 12:08:54 +0000 (17:38 +0530)
For some reasons we had an own implementaion of dram_init and
dram_init_banksize. This is not needed anymore, use the standard
kirkwood functions instead.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Gerlando Falauto <gerlando.falauto@keymile.com>
Acked-By: Prafulla Wadaskar <prafulla@marvell.com>
board/keymile/km_arm/km_arm.c
include/configs/km/keymile-common.h

index 930c80e7c2a60ac661ea6c940b03b0c5bc5fdeee..be8f51c2fc404ff13a1f5a914d01219eaf4637f3 100644 (file)
@@ -331,26 +331,6 @@ void board_spi_release_bus(struct spi_slave *slave)
        kw_gpio_set_value(KM_FLASH_GPIO_PIN, 1);
 }
 
-int dram_init(void)
-{
-       /* dram_init must store complete ramsize in gd->ram_size */
-       /* Fix this */
-       gd->ram_size = get_ram_size((void *)kw_sdram_bar(0),
-                               kw_sdram_bs(0));
-       return 0;
-}
-
-void dram_init_banksize(void)
-{
-       int i;
-
-       for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-               gd->bd->bi_dram[i].start = kw_sdram_bar(i);
-               gd->bd->bi_dram[i].size = get_ram_size((long *)kw_sdram_bar(i),
-                                                      kw_sdram_bs(i));
-       }
-}
-
 #if (defined(CONFIG_KM_PIGGY4_88E6061))
 
 #define        PHY_LED_SEL_REG         0x18
index 7ed99587a24d48ae7e958ef2de81ffe398eab433..9983104732713a826cedaae228a53b3635a94b3b 100644 (file)
@@ -81,7 +81,6 @@
 
 #define CONFIG_LOADS_ECHO
 #define CONFIG_SYS_LOADS_BAUD_CHANGE
-#define CONFIG_SYS_BOARD_DRAM_INIT     /* Used board specific dram_init */
 
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_SYS_MAX_I2C_BUS         1