]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Do not setup ram start and size in board specific file
authorMichal Simek <michal.simek@xilinx.com>
Tue, 5 Mar 2013 12:59:05 +0000 (13:59 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Mar 2013 13:00:33 +0000 (14:00 +0100)
It is setup in dram_init_banksize() in board.c
Also do not call get_ram_size to determine ram size.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynq/board.c

index 78f2c56e36e431c1a2be6da7c3beabad926b3bf4..c4983c8ab1817656da588481a2ff5fa46d269d9d 100644 (file)
@@ -161,10 +161,7 @@ int board_nand_init(struct nand_chip *nand_chip)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-                                                       CONFIG_SYS_SDRAM_SIZE);
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_dram[0].size = CONFIG_SYS_SDRAM_SIZE;
+       gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
 
        return 0;
 }