tegra: Move clock_early_init() to arch_cpu_init()
authorSimon Glass <sjg@chromium.org>
Mon, 28 Nov 2011 15:04:36 +0000 (15:04 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 24 Dec 2011 09:23:32 +0000 (10:23 +0100)
The clock init is not board specific, so move it into
the cpu code.

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 d0a599edc5c19255f7f3ddf40bde59ca9f87ba95..803ddc15d938a188e341790abd75f2f7ccbbf025 100644 (file)
@@ -84,6 +84,9 @@ int arch_cpu_init(void)
        /* We didn't do this init in start.S, so do it now */
        cpu_init_cp15();
 
+       /* Initialize essential common plls */
+       clock_early_init();
+
        return 0;
 }
 #endif
index 219b26aac46484b05662b54d27029f4fb122c03b..0ff656aeee832680a10c3ee59471fc483c08cbfc 100644 (file)
@@ -143,9 +143,6 @@ int board_early_init_f(void)
        uart_ids |= UARTD;
 #endif
 
-       /* Initialize essential common plls */
-       clock_early_init();
-
        /* Initialize UART clocks */
        clock_init_uart(uart_ids);