diff --git a/arch/arm64/src/imx9/imx9_boot.c b/arch/arm64/src/imx9/imx9_boot.c index 473529966caa7..8f293ce8b10ae 100644 --- a/arch/arm64/src/imx9/imx9_boot.c +++ b/arch/arm64/src/imx9/imx9_boot.c @@ -124,10 +124,6 @@ void arm64_el_init(void) void arm64_chip_boot(void) { - /* MAP IO and DRAM, enable MMU. */ - - arm64_mmu_init(true); - #ifdef CONFIG_IMX9_BOOTLOADER imx9_mix_powerup(); @@ -144,6 +140,10 @@ void arm64_chip_boot(void) #endif #endif + /* MAP IO and DRAM, enable MMU. */ + + arm64_mmu_init(true); + /* Do UART early initialization & pin muxing */ #ifdef CONFIG_IMX9_LPUART