From: Simon Glass Date: Mon, 28 Nov 2011 15:04:36 +0000 (+0000) Subject: tegra: Move clock_early_init() to arch_cpu_init() X-Git-Tag: v2012.04-rc1~329^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=905ed41aad2f80b64b1163a55e18ee4e5278e708;p=u-boot tegra: Move clock_early_init() to arch_cpu_init() The clock init is not board specific, so move it into the cpu code. Signed-off-by: Simon Glass Acked-by: Stephen Warren Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/armv7/tegra2/board.c b/arch/arm/cpu/armv7/tegra2/board.c index d0a599edc5..803ddc15d9 100644 --- a/arch/arm/cpu/armv7/tegra2/board.c +++ b/arch/arm/cpu/armv7/tegra2/board.c @@ -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 diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 219b26aac4..0ff656aeee 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);