dra7: Allow selecting a new dtb after board detection.
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 7 Dec 2018 13:50:55 +0000 (14:50 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Dec 2018 06:27:25 +0000 (07:27 +0100)
commit40ecdbc6489297f80ca0f624c735d055088594ae
tree8f02c33ae1b89a2a51bfc642e5733abc70c6ab82
parentc483f4cec07fcd732ea4c4dfa98b584ed9295b3d
dra7: Allow selecting a new dtb after board detection.

The DRA7 platforms requires that the dtb used in the SPL really matches the
platform  to have the best MMC performances.
To detect the board type/version an I2C EEPROM is read. This requires that
DM is initialized before the detection. As a consequence we must reset the
DM after the board detection is a new dtb would better match the platform.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
arch/arm/mach-omap2/hwinit-common.c
configs/dra7xx_evm_defconfig