diff options
| author | Marek Vasut <[email protected]> | 2022-02-16 15:27:59 +0100 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2022-03-23 07:27:37 +0100 |
| commit | e3c2042ae7d188e00e48d984e373a2de505d8b77 (patch) | |
| tree | 8a216db5ee6a90deda3bd59ed9eacd1e2efb8ea6 /cmd/eeprom.c | |
| parent | 6db539f983400279cd682fecbbd1fdd4c96d9034 (diff) | |
cmd: eeprom: Do not rewrite EEPROM I2C bus with DM I2C enabled
With DM I2C, the EEPROM bus has been correctly configured in
eeprom_execute_command() already. Do not reconfigure it here
with hard-coded bus number again.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'cmd/eeprom.c')
| -rw-r--r-- | cmd/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/eeprom.c b/cmd/eeprom.c index cdd65af763b..fc0d4440694 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -149,7 +149,7 @@ static int eeprom_rw(unsigned dev_addr, unsigned offset, uchar *buffer, int rcode = 0; uchar addr[3]; -#if defined(CONFIG_SYS_I2C_EEPROM_BUS) +#if !CONFIG_IS_ENABLED(DM_I2C) && defined(CONFIG_SYS_I2C_EEPROM_BUS) eeprom_init(CONFIG_SYS_I2C_EEPROM_BUS); #endif |
