rpi: Enable DRAM bank initialization on arm64 04/220204/1
authorMatthias Brugger <mbrugger@suse.com>
Thu, 5 Dec 2019 17:53:14 +0000 (18:53 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 16 Dec 2019 04:27:55 +0000 (13:27 +0900)
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")
Change-Id: Id7f3fec63777360d4536b836d98ad77f4b3a5a4e
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
board/raspberrypi/rpi/rpi.c

index 673ae8e37a8bec2b30c3a909eb7b74cfcebb7833..d8f8a97072f508ce467d3bd794c6202f604cf0a6 100644 (file)
@@ -299,7 +299,6 @@ int dram_init(void)
 }
 
 #ifdef CONFIG_OF_BOARD
-#ifdef CONFIG_BCM2711
 int dram_init_banksize(void)
 {
        int ret;
@@ -311,7 +310,6 @@ int dram_init_banksize(void)
        return fdtdec_setup_mem_size_base();
 }
 #endif
-#endif
 
 static void set_fdtfile(void)
 {