]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: armv8: mmu: move mmu enablement out of mmu_setup
authorAnshul Dalal <anshuld@ti.com>
Wed, 20 May 2026 02:51:49 +0000 (08:21 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 25 May 2026 15:29:50 +0000 (09:29 -0600)
commitb53128d5283d63d749525895b2a38b558d843ced
tree28762cd80d9e4010fb7464b1e0c577d96e29803d
parent7f34bb50a59804f6ebe02c1f62b7b29093eb103c
arm: armv8: mmu: move mmu enablement out of mmu_setup

Currently mmu_setup for ARMv8 performs two functions, first it sets up
the page tables based the memory map provided by the board and then it
enables the MMU.

However for some platforms runtime fixes to the generated page tables
are required before the MMU can be enabled, such as K3 family of SoCs.

Therefore this patch moves the enablement of the MMU out of mmu_setup
and to a standalone mmu_enable function to give more granular control to
the platforms.

Note that no functional changes are intended from this patch.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Anshul Dalal <anshuld@ti.com>
arch/arm/cpu/armv8/cache_v8.c
arch/arm/include/asm/armv8/mmu.h
arch/arm/mach-k3/common.c