[U-Boot] [PATCH 2/6] tegra: Move clock_early_init() to arch_cpu_init()

Simon Glass sjg at chromium.org
Wed Nov 23 23:59:04 CET 2011


The clock init is not board specific, so move it into
the cpu code.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 arch/arm/cpu/armv7/tegra2/board.c |    3 +++
 board/nvidia/common/board.c       |    3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/cpu/armv7/tegra2/board.c b/arch/arm/cpu/armv7/tegra2/board.c
index f17b369..2fd38ae 100644
--- a/arch/arm/cpu/armv7/tegra2/board.c
+++ b/arch/arm/cpu/armv7/tegra2/board.c
@@ -83,6 +83,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
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 219b26a..0ff656a 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -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);
 
-- 
1.7.3.1



More information about the U-Boot mailing list