From: Marco Felsch Date: Fri, 1 Jul 2022 13:50:05 +0000 (+0200) Subject: refactor(imx8mp): make use of setup_page_tables() X-Git-Tag: baikal/aarch64/sdk5.9~61^2 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=c52966f963549f20e190289510cb8c0edc9a6b69;p=arm-tf.git refactor(imx8mp): 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: I350965414939865220f745ef5b24d2cdc3095e7b --- diff --git a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c index 76c201edd..b98566ccc 100644 --- a/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c +++ b/plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c @@ -198,11 +198,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); }