]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(imx8mn): make use of setup_page_tables()
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 4 Jul 2022 10:11:01 +0000 (12:11 +0200)
committerMarco Felsch <m.felsch@pengutronix.de>
Thu, 20 Oct 2022 16:21:33 +0000 (18:21 +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: I2f0182f19300a3a57bbeb7e2107c5fb5525dd0c1

plat/imx/imx8m/imx8mn/imx8mn_bl31_setup.c

index 6d8027cc4d37f7fd50e41d89f69566764b2be74f..34ee5bcac12f973207aacf276f902eb0e8fd1699 100644 (file)
@@ -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);
 }