]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
siemens draco: i2c: use driver model for u-boot
authorEnrico Leto <enrico.leto@siemens.com>
Wed, 24 Jan 2024 14:43:51 +0000 (15:43 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 5 Feb 2024 18:32:48 +0000 (13:32 -0500)
Add support for driver model where EEPROM data are read in draco board.

Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Enrico Leto <enrico.leto@siemens.com>
configs/draco-etamin_defconfig
configs/draco-rastaban_defconfig
configs/draco-thuban_defconfig

index a89494f908368cfe086c74dd4bde90e1590feb70..ec9331e625a52ad119f8ac49dab71c2ac1695c0b 100644 (file)
@@ -86,8 +86,10 @@ CONFIG_CLK=y
 CONFIG_CLK_TI_CTRL=y
 CONFIG_DFU_NAND=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
-CONFIG_SYS_I2C_LEGACY=y
+CONFIG_DM_I2C=y
+# CONFIG_SPL_DM_I2C is not set
 CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 # CONFIG_SPL_DM_MMC is not set
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD=y
index f4a9b860bf0528d95075be9cdeb45bde6997a90d..03fbe494901d0a35a7f8d0a10fee87a074ff406b 100644 (file)
@@ -84,8 +84,10 @@ CONFIG_CLK=y
 CONFIG_CLK_TI_CTRL=y
 CONFIG_DFU_NAND=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
-CONFIG_SYS_I2C_LEGACY=y
+CONFIG_DM_I2C=y
+# CONFIG_SPL_DM_I2C is not set
 CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
index cf2c46b3d20d7675e0efc086b3ee4112fdeef553..fcc9b0380f4cbc009c6e3975b4e06ac36fac8be1 100644 (file)
@@ -84,8 +84,10 @@ CONFIG_CLK=y
 CONFIG_CLK_TI_CTRL=y
 CONFIG_DFU_NAND=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
-CONFIG_SYS_I2C_LEGACY=y
+CONFIG_DM_I2C=y
+# CONFIG_SPL_DM_I2C is not set
 CONFIG_SPL_SYS_I2C_LEGACY=y
+CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y