arm: mach-omap2: am33xx: Init pinmux before clock
authorMarek Vasut <marex@denx.de>
Sat, 25 May 2019 20:40:35 +0000 (22:40 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 18:11:20 +0000 (14:11 -0400)
commitb2a2bf41acd7a1111dd67575528f3911086149a6
tree799c2dd210acaeced9f7f04b0f16a1f421270950
parent9bdf0e8fef8683f147bb11c61242dde67d1be291
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 <marex@denx.de>
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/am33xx/board.c