From 95cb69faeb45f6396a1336bff201a50ea1677d85 Mon Sep 17 00:00:00 2001 From: Lokesh Vutla Date: Tue, 30 Jul 2013 10:48:53 +0530 Subject: ARM: AM33xx: Cleanup clocks layer Cleaning up the clocks layer. This helps in addition of new Soc with minimal changes. This is derived from OMAP4 boards. Signed-off-by: Lokesh Vutla Tested-by: Heiko Schocher Acked-by: Heiko Schocher --- board/ti/ti814x/evm.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'board/ti/ti814x/evm.c') diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c index c469645..bd708bb 100644 --- a/board/ti/ti814x/evm.c +++ b/board/ti/ti814x/evm.c @@ -125,11 +125,7 @@ void s_init(void) /* Enable timer */ timer_init(); - /* Setup the PLLs and the clocks for the peripherals */ - pll_init(); - - /* Enable RTC32K clock */ - rtc32k_enable(); + setup_clocks_for_console(); /* Set UART pins */ enable_uart0_pin_mux(); @@ -147,6 +143,12 @@ void s_init(void) preloader_console_init(); + /* Setup the PLLs and the clocks for the peripherals */ + prcm_init(); + + /* Enable RTC32K clock */ + rtc32k_enable(); + config_dmm(&evm_lisa_map_regs); config_ddr(0, 0, &evm_ddr2_data, &evm_ddr2_cctrl_data, -- cgit v1.1