]> git.sur5r.net Git - u-boot/commitdiff
tegra: Move cpu_init_cp15() to arch_cpu_init()
authorSimon Glass <sjg@chromium.org>
Mon, 28 Nov 2011 15:04:35 +0000 (15:04 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 24 Dec 2011 09:23:32 +0000 (10:23 +0100)
This call is more of an architecture requirement than a board
one, so move it there.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/board.c
board/nvidia/common/board.c

index 59dce8f8de91dc4dc4f6409d2edd7828e7f90247..d0a599edc5c19255f7f3ddf40bde59ca9f87ba95 100644 (file)
@@ -80,6 +80,10 @@ int arch_cpu_init(void)
 {
        /* Fire up the Cortex A9 */
        tegra2_start();
+
+       /* We didn't do this init in start.S, so do it now */
+       cpu_init_cp15();
+
        return 0;
 }
 #endif
index c3f6796d5d36c2fc423981bc159ea5f6ee78de46..219b26aac46484b05662b54d27029f4fb122c03b 100644 (file)
@@ -143,9 +143,6 @@ int board_early_init_f(void)
        uart_ids |= UARTD;
 #endif
 
-       /* We didn't do this init in start.S, so do it now */
-       cpu_init_cp15();
-
        /* Initialize essential common plls */
        clock_early_init();