]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ti/am335x/board.c
ARM: AM33xx: Cleanup clocks layer
[karo-tx-uboot.git] / board / ti / am335x / board.c
index 2be229746b99768f54bff3ef3d04c1e9a47154ae..a6edc2d62706cfae061e268e00409dcb97926237 100644 (file)
@@ -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)) {
                /*