]> git.baikalelectronics.ru Git - uboot.git/commit
ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT
authorAndreas Dannenberg <dannenberg@ti.com>
Fri, 7 Dec 2018 13:50:47 +0000 (14:50 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Dec 2018 05:20:17 +0000 (06:20 +0100)
commit1fdd38dc5eba00d0810e70ba6d6e60e35387090c
treedae2cdca927365c230081823cd85974effd921d6
parent47d7324ba24d28eaed61d46feda60dad2b587e69
ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT

The EEPROM reading in the board detection code is done through legacy
I2C functions which on platforms using DM_I2C this functionality is
provided via the CONFIG_DM_I2C_COMPAT layer. To allow newer platforms
to use the board detection code without relying on CONFIG_DM_I2C_COMPAT
go ahead and add an I2C handling implementation that directly uses the
I2C DM functionality.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
board/ti/common/board_detect.c