u-boot/board/raspberrypi/rpi
Marek Szyprowski 6b3d18c2cb rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE
When RPi4 is booted from USB Mass Storage, the firmware reports 947MiB of
the ARM memory (948 in case of the standard SD-card boot). This value is
not MMU_SECTION_SIZE aligned, so the dram_bank_mmu_setup() skips mapping
of the last 1MiB. This later causes u-boot in ARM 32bit mode to freeze,
because it relocated itself into that unmapped memory and fails to
execute.

Fix this by limiting the size of the first bank to the multiple of
MMU_SECTION_SIZE.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
2021-02-18 11:56:25 +01:00
..
Kconfig rpi: Kconfig option for initial page reservation 2020-05-13 14:04:49 +02:00
lowlevel_init.S rpi: push fw_dtb_pointer in the .data section 2019-11-24 10:46:27 +01:00
MAINTAINERS RPi: Add mbrugger as board maintainer 2019-03-29 10:53:18 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rpi.c rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE 2021-02-18 11:56:25 +01:00