]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
armv8: ls2080a: Drop early MMU for SPL build
authorYork Sun <york.sun@nxp.com>
Mon, 6 Mar 2017 17:02:32 +0000 (09:02 -0800)
committerYork Sun <york.sun@nxp.com>
Tue, 14 Mar 2017 15:44:03 +0000 (08:44 -0700)
Early MMU improves performance especially on emulators. However, the
early MMU is left enabled after the first stage of SPL boot. Instead
of flushing D-cache and dealing with re-enabling MMU for the second
stage U-Boot, disabling it for SPL build simplifies the process. The
performance penalty is unnoticeable on the real hardware. As of now,
SPL boot is not supported by existing emulators. So this should have
no impact on emulators.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/spl.c

index 1dabdbb3058165dbc6bdde5a883a0fc5618e97ad..73a8680741741f501bd4ee84f9cffb98c7d7cba5 100644 (file)
@@ -45,9 +45,6 @@ void board_init_f(ulong dummy)
 {
        /* Clear global data */
        memset((void *)gd, 0, sizeof(gd_t));
-#ifdef CONFIG_LS2080A
-       arch_cpu_init();
-#endif
        board_early_init_f();
        timer_init();
 #ifdef CONFIG_LS2080A