mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-30 07:01:32 +01:00
ARM: DRA7xx: clocks: Fixing i2c_init for PMIC
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>
This commit is contained in:
parent
63fc0c775c
commit
3332b24421
@ -730,6 +730,7 @@ void prcm_init(void)
|
|||||||
case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR:
|
case OMAP_INIT_CONTEXT_UBOOT_FROM_NOR:
|
||||||
case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH:
|
case OMAP_INIT_CONTEXT_UBOOT_AFTER_CH:
|
||||||
enable_basic_clocks();
|
enable_basic_clocks();
|
||||||
|
timer_init();
|
||||||
scale_vcores(*omap_vcores);
|
scale_vcores(*omap_vcores);
|
||||||
setup_dplls();
|
setup_dplls();
|
||||||
#ifdef CONFIG_SYS_CLOCKS_ENABLE_ALL
|
#ifdef CONFIG_SYS_CLOCKS_ENABLE_ALL
|
||||||
|
|||||||
@ -166,8 +166,6 @@ void s_init(void)
|
|||||||
#endif
|
#endif
|
||||||
prcm_init();
|
prcm_init();
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
timer_init();
|
|
||||||
|
|
||||||
/* For regular u-boot sdram_init() is called from dram_init() */
|
/* For regular u-boot sdram_init() is called from dram_init() */
|
||||||
sdram_init();
|
sdram_init();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user