]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsl: mxc: Drop legacy I2c
authorSimon Glass <sjg@chromium.org>
Sun, 11 Aug 2024 14:50:39 +0000 (08:50 -0600)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Aug 2024 04:12:48 +0000 (06:12 +0200)
Drop some old code from the mxc_i2c and ddr/fsl drivers. This will allow
removal of very old common I2C code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/ddr/fsl/main.c
drivers/i2c/mxc_i2c.c

index 31091bb44952618cdadfd89df04dc2d1c98725ee..888dfb7ff33f06628193cfdd71600c53aadfa0df 100644 (file)
@@ -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 = 0;
 #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
index 84c0050eac085b9d530a2577a85fbdb5789e2c22..2f3cb5908c91954fe629f79678e3f5a7c1074b94 100644 (file)
@@ -620,6 +620,7 @@ int enable_i2c_clk(unsigned char enable, unsigned int i2c_num)
        __attribute__((weak, alias("__enable_i2c_clk")));
 
 #if !CONFIG_IS_ENABLED(DM_I2C)
+
 /*
  * Read data from I2C device
  *