From 1bfe8bcf711d1c534c8e37bf4889c9b1834e0833 Mon Sep 17 00:00:00 2001 From: Jouni Ukkonen Date: Fri, 29 Nov 2024 09:32:55 +0200 Subject: [PATCH] arch/arm64/imx9: Boot, move mmu init to correct place MMU init must be after ddrinit. Signed-off-by: Jouni Ukkonen --- arch/arm64/src/imx9/imx9_boot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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