]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: highbank: remove DRAM bank setup
authorRob Herring <robh@kernel.org>
Sat, 20 Jun 2015 23:29:55 +0000 (00:29 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:43 +0000 (08:17 +0200)
On the highbank platform the SoC's management controller firmware
will probe the DRAM modules and populates the initial device tree with
the correct values. Therefore the memory sizes in the DT are already
correct, so remove U-Boot's DRAM bank setup so the memory node is not
"fixed up" by u-boot.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andre Przywara <osp@andrep.de>
board/highbank/highbank.c
include/configs/highbank.h

index 469ee8e114663a3a2006d429db450382242f119c..55999ed2266bcb4045dc3975dcafbb18955a4ed1 100644 (file)
@@ -96,12 +96,6 @@ int dram_init(void)
        return 0;
 }
 
-void dram_init_banksize(void)
-{
-       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_dram[0].size =  PHYS_SDRAM_1_SIZE;
-}
-
 #if defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *fdt, bd_t *bd)
 {
index 86823e235c6925d2cafe86102acba14b7b9e635b..7f331a6a73cdc5975dd9be2a6bdc74787476ac11 100644 (file)
@@ -75,8 +75,9 @@
 
 /*-----------------------------------------------------------------------
  * Physical Memory Map
+ * The DRAM is already setup, so do not touch the DT node later.
  */
-#define CONFIG_NR_DRAM_BANKS           1
+#define CONFIG_NR_DRAM_BANKS           0
 #define PHYS_SDRAM_1_SIZE              (4089 << 20)
 #define CONFIG_SYS_MEMTEST_START       0x100000
 #define CONFIG_SYS_MEMTEST_END         (PHYS_SDRAM_1_SIZE - 0x100000)