]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: armv8: mmu: fix mem_map_from_dram_banks
authorAnshul Dalal <anshuld@ti.com>
Fri, 31 Oct 2025 16:17:31 +0000 (21:47 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 4 Nov 2025 16:39:06 +0000 (10:39 -0600)
commit45b7857d3b5b4cb12a5cc0a121bc8ac4b57427fa
treec6f93b2ea738193243f1149bdae8934129843944
parente5b9d92d408d181d5983f352792e1549f03c7e46
arm: armv8: mmu: fix mem_map_from_dram_banks

mem_map_from_dram_banks calls fdtdec_setup_memory_banksize to setup the
dram banks though that is expected to be done by dram_init_banksize as
part of board_r sequence.

This has the side effect of modifying gd->bd->bi_dram as well, therefore
this patch removes the call and updates spl_enable_cache for K3 to call
dram_init_banksize.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reported-by: Francesco Dolcini <francesco@dolcini.it>
Closes: https://lore.kernel.org/u-boot/20251027165225.GA71553@francesco-nb/
Fixes: fe2647f2a0d4 ("arm: armv8: mmu: add mem_map_from_dram_banks")
Tested-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
arch/arm/cpu/armv8/cache_v8.c
arch/arm/mach-k3/common.c