From: Marco Felsch Date: Mon, 4 Jul 2022 10:11:01 +0000 (+0200) Subject: refactor(imx8mn): make use of setup_page_tables() X-Git-Tag: baikal/aarch64/sdk5.9~57^2 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=602b3286a515a78f6ed674ed99a5167fbcaf92c1;p=arm-tf.git refactor(imx8mn): make use of setup_page_tables() No functional change. Use the setup_page_tables() helper function which does the three calls for us. Also the function has some logging support which will be nice during debugging. Signed-off-by: Marco Felsch Change-Id: I2f0182f19300a3a57bbeb7e2107c5fb5525dd0c1 --- diff --git a/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c b/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c index 6d8027cc4..34ee5bcac 100644 --- a/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c +++ b/plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c @@ -202,11 +202,7 @@ void bl31_plat_arch_setup(void) {0} }; - mmap_add(bl_regions); - mmap_add(imx_mmap); - - init_xlat_tables(); - + setup_page_tables(bl_regions, imx_mmap); enable_mmu_el3(0); }