am335x: Register the I2C controllers if DM_I2C is used.
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 7 Dec 2018 13:50:43 +0000 (14:50 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Dec 2018 05:12:42 +0000 (06:12 +0100)
commit0e6e67c66795148c95269dda26d05c221d575478
treecb1a88a27d567132bb205c680e01b92f78c2892b
parent5f97ae681428f5623503e3e4b6d8d2c34b76ea3d
am335x: Register the I2C controllers if DM_I2C is used.

If DM_I2C is used , the I2C controllers must be registered as U_BOOT_DEVICE
because OF_CONTROL is not used in the SPL.

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/am33xx/board.c