diff mbox series

[v2,2/3] rpi: Enable DRAM bank initialization on arm64

Message ID 20191205175315.9225-2-matthias.bgg@kernel.org
State Accepted
Commit a63f81c242090682ea4907fa6475d8057208cb05
Delegated to: Matthias Brugger
Headers show
Series [v2,1/3] rpi: fix dram bank initialization | expand

Commit Message

Matthias Brugger Dec. 5, 2019, 5:53 p.m. UTC
From: Matthias Brugger <mbrugger@suse.com>

Up to now we only update the DRAM banks when we are define
CONFIG_BCM2711. But our one binary approach uses a config that supports
BCM2837 and BCM2711. As a result we only see one gibibyte of RAM on
Raspberry Pi 4, even if it has more RAM.
Fix this by calling dram_init_banksize.

Fixes: 5694090670 ("ARM: defconfig: add unified config for RPi3 and RPi4")

Signed-off-by: Matthias Brugger <mbrugger@suse.com>

---

Changes in v2:
- fix commit message
- call dram_init_banksize independent of ARM64

 board/raspberrypi/rpi/rpi.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index e19610f40f..e367ba3092 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -272,7 +272,6 @@  int dram_init(void)
 }
 
 #ifdef CONFIG_OF_BOARD
-#ifdef CONFIG_BCM2711
 int dram_init_banksize(void)
 {
 	int ret;
@@ -284,7 +283,6 @@  int dram_init_banksize(void)
 	return fdtdec_setup_mem_size_base();
 }
 #endif
-#endif
 
 static void set_fdtfile(void)
 {