]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: DRA7xx: clocks: Fixing i2c_init for PMIC
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 30 May 2013 03:19:30 +0000 (03:19 +0000)
committerTom Rini <trini@ti.com>
Mon, 10 Jun 2013 12:43:09 +0000 (08:43 -0400)
In DRA7xx Soc's voltage scaling is done using GPI2C.
So i2c_init should happen before scaling. I2C driver
uses __udelay which needs timer to be initialized.
So moving timer_init just before voltage scaling.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/cpu/armv7/omap-common/clocks-common.c
arch/arm/cpu/armv7/omap-common/hwinit-common.c

index eda3451e73460a6b4a3e3ea502f55230234dc6f1..6c8226d39327eecff443f265de5b8a1725284140 100644 (file)
@@ -730,6 +730,7 @@ void prcm_init(void)
        case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR:
        case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH:
                enable_basic_clocks();
+               timer_init();
                scale_vcores(*omap_vcores);
                setup_dplls();
 #ifdef CONFIG_SYS_CLOCKS_ENABLE_ALL
index 0776d5c6e8a717de4fac944eb36161a6503ec677..5df116edbe67b379b50952b896635c248ad7bc25 100644 (file)
@@ -166,8 +166,6 @@ void s_init(void)
 #endif
        prcm_init();
 #ifdef CONFIG_SPL_BUILD
-       timer_init();
-
        /* For regular u-boot sdram_init() is called from dram_init() */
        sdram_init();
 #endif