[PATCH 12/20] i2c: mxc: pg_wcom: Drop legacy I2c

Simon Glass sjg at chromium.org
Thu Jul 18 19:36:03 CEST 2024


Drop use of this feature, but keep the board building. This will allow
removal of very old common I2C code.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/ddr/fsl/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c
index 31091bb4495..6474e0d64c7 100644
--- a/drivers/ddr/fsl/main.c
+++ b/drivers/ddr/fsl/main.c
@@ -111,7 +111,7 @@ static int ddr_i2c_read(DEV_TYPE *dev, unsigned int addr,
 #if CONFIG_IS_ENABLED(DM_I2C)
 	ret = dm_i2c_read(dev, 0, buf, len);
 #else
-	ret = i2c_read(dev->chip, addr, alen, buf, len);
+	ret = -ENOSYS;
 #endif
 
 	return ret;
@@ -162,7 +162,6 @@ static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
 	};
 	dev = &ldev;
 
-	i2c_set_bus_num(CONFIG_SYS_SPD_BUS_NUM);
 #endif
 
 #ifdef CONFIG_SYS_FSL_DDR4
-- 
2.34.1



More information about the U-Boot mailing list