]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx31_litekit: Remove dram_init_banksize()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Sep 2011 08:07:13 +0000 (08:07 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 30 Sep 2011 20:01:03 +0000 (22:01 +0200)
As only one RAM bank is used we can rely on the code from arch/arm/lib/board.c

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/logicpd/imx31_litekit/imx31_litekit.c
include/configs/imx31_litekit.h

index 09cc9c5b9ce0a21bb26142b7fd247a81b5c97074..0402a0b72921040b689a6bd42b9630c34f75426d 100644 (file)
@@ -37,12 +37,6 @@ int dram_init(void)
        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;
-}
-
 int board_early_init_f(void)
 {
        __REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
index b7f1cb3c758350319ece79c2d200e7dedd631e14..2a02b3d5f5c32ac121a71bdeb8ec4a3bba391710 100644 (file)
 #define PHYS_SDRAM_1_SIZE      (128 * 1024 * 1024)
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_SYS_SDRAM_BASE          CSD0_BASE
+#define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM_1
 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE               IRAM_SIZE
 #define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)