mach-k3: map all banks using mem_map_from_dram_banks
authorAnshul Dalal <anshuld@ti.com>
Fri, 17 Oct 2025 13:15:28 +0000 (18:45 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 18:05:52 +0000 (12:05 -0600)
commitf1c694b8fddece279cdd103ae4009bf25345d8e4
tree0f1c4458ba726915ab9487f684afa21a64adb659
parentfe2647f2a0d4e4df5d47fdf068aeb2a1edd3d533
mach-k3: map all banks using mem_map_from_dram_banks

The static memory map for K3 (k3_mem_map) only maps the first DRAM bank
and therefore doesn't scale for platforms with multiple memory banks.

This patch modifies enable_caches to add mem_map_from_dram_banks which
appends all the memory banks to k3_mem_map before calling mmu_setup.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
arch/arm/mach-k3/arm64/arm64-mmu.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/include/mach/k3-ddr.h