[U-Boot] [PATCH 7/8] ARM: highbank: remove DRAM bank setup
Andre Przywara
osp at andrep.de
Fri Jun 5 01:58:48 CEST 2015
From: Rob Herring <robh at kernel.org>
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 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 at kernel.org>
Signed-off-by: Andre Przywara <osp at andrep.de>
---
board/highbank/highbank.c | 6 ------
include/configs/highbank.h | 2 +-
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index e8132b8..9ebd895 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -93,12 +93,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)
{
diff --git a/include/configs/highbank.h b/include/configs/highbank.h
index da1c837..b1d618b 100644
--- a/include/configs/highbank.h
+++ b/include/configs/highbank.h
@@ -83,7 +83,7 @@
/*-----------------------------------------------------------------------
* Physical Memory Map
*/
-#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)
--
1.8.4
More information about the U-Boot
mailing list