summaryrefslogtreecommitdiffstats
path: root/board/ti/ti814x/evm.c
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2013-07-30 10:48:53 +0530
committerTom Rini <trini@ti.com>2013-08-15 08:51:10 -0400
commit95cb69faeb45f6396a1336bff201a50ea1677d85 (patch)
tree6eac5c28deb7b60094ccc54ea2a1e22e92722389 /board/ti/ti814x/evm.c
parent94d77fb656d49f2b0efe2de5605a52c5145d2c3b (diff)
downloadblackbird-obmc-uboot-95cb69faeb45f6396a1336bff201a50ea1677d85.tar.gz
blackbird-obmc-uboot-95cb69faeb45f6396a1336bff201a50ea1677d85.zip
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 <lokeshvutla@ti.com> Tested-by: Heiko Schocher <hs@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/ti/ti814x/evm.c')
-rw-r--r--board/ti/ti814x/evm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c
index c469645ff3..bd708bb367 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,
OpenPOWER on IntegriCloud