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/am335x/board.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'board/ti/am335x') diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 2be229746b..a6edc2d627 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -317,10 +317,7 @@ void s_init(void) #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_NOR_BOOT) /* Setup the PLLs and the clocks for the peripherals */ - pll_init(); - - /* Enable RTC32K clock */ - rtc32k_enable(); + setup_clocks_for_console(); #ifdef CONFIG_SERIAL1 enable_uart0_pin_mux(); @@ -354,12 +351,14 @@ void s_init(void) preloader_console_init(); #endif - /* Initalize the board header */ - enable_i2c0_pin_mux(); - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); + prcm_init(); + if (read_eeprom(&header) < 0) puts("Could not get board ID.\n"); + /* Enable RTC32K clock */ + rtc32k_enable(); + enable_board_pin_mux(&header); if (board_is_evm_sk(&header)) { /* -- cgit v1.2.1