]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(imx8mp): make use of setup_page_tables()
authorMarco Felsch <m.felsch@pengutronix.de>
Fri, 1 Jul 2022 13:50:05 +0000 (15:50 +0200)
committerMarco Felsch <m.felsch@pengutronix.de>
Thu, 20 Oct 2022 16:20:27 +0000 (18:20 +0200)
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 <m.felsch@pengutronix.de>
Change-Id: I350965414939865220f745ef5b24d2cdc3095e7b

plat/imx/imx8m/imx8mp/imx8mp_bl31_setup.c

index 76c201edd9f57b232eb9d1b8a26391ee1d5e82c0..b98566cccc0d788411fc3589057e5a7cd8c4e6d0 100644 (file)
@@ -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);
 }