diff options
| author | Marek Vasut <[email protected]> | 2019-05-25 22:40:35 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-07-11 14:11:20 -0400 |
| commit | b2a2bf41acd7a1111dd67575528f3911086149a6 (patch) | |
| tree | 799c2dd210acaeced9f7f04b0f16a1f421270950 | |
| parent | 9bdf0e8fef8683f147bb11c61242dde67d1be291 (diff) | |
arm: mach-omap2: am33xx: Init pinmux before clock
The board_early_init_f() inits clock before initing pinmux. However,
the clock configuration code might need to adjust PMIC settings of a
PMIC on I2C bus (e.g. board/ti/am335x/board.c does that). If the I2C
bus pin muxing is not configured before attempting to communicate
with the PMIC, the communication will silently fail and the prcm_init()
may configure fast enough CPU clock that the default voltage provided
by the PMIC would be insufficient and the platform would become
unstable.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Jean-Jacques Hiblot <[email protected]>
Cc: Tom Rini <[email protected]>
| -rw-r--r-- | arch/arm/mach-omap2/am33xx/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index 5507348981b..03460c3eb7e 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -375,8 +375,8 @@ void update_rtc_magic(void) */ int board_early_init_f(void) { - prcm_init(); set_mux_conf_regs(); + prcm_init(); #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_RTC_DDR_SUPPORT) update_rtc_magic(); #endif |
