diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2013-07-30 10:48:53 +0530 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-08-15 08:51:10 -0400 |
commit | 95cb69faeb45f6396a1336bff201a50ea1677d85 (patch) | |
tree | 6eac5c28deb7b60094ccc54ea2a1e22e92722389 /board | |
parent | 94d77fb656d49f2b0efe2de5605a52c5145d2c3b (diff) | |
download | u-boot-imx-95cb69faeb45f6396a1336bff201a50ea1677d85.zip u-boot-imx-95cb69faeb45f6396a1336bff201a50ea1677d85.tar.gz u-boot-imx-95cb69faeb45f6396a1336bff201a50ea1677d85.tar.bz2 |
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')
-rw-r--r-- | board/isee/igep0033/board.c | 11 | ||||
-rw-r--r-- | board/ti/am335x/board.c | 13 | ||||
-rw-r--r-- | board/ti/ti814x/evm.c | 12 |
3 files changed, 19 insertions, 17 deletions
diff --git a/board/isee/igep0033/board.c b/board/isee/igep0033/board.c index 034a8aa..a065a74 100644 --- a/board/isee/igep0033/board.c +++ b/board/isee/igep0033/board.c @@ -103,11 +103,7 @@ void s_init(void) ; #ifdef CONFIG_SPL_BUILD - /* Setup the PLLs and the clocks for the peripherals */ - pll_init(); - - /* Enable RTC32K clock */ - rtc32k_enable(); + setup_clocks_for_console(); enable_uart0_pin_mux(); @@ -116,6 +112,11 @@ void s_init(void) preloader_console_init(); + prcm_init(); + + /* Enable RTC32K clock */ + rtc32k_enable(); + /* Configure board pin mux */ enable_board_pin_mux(); diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 2be2297..a6edc2d 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)) { /* 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, |