mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
cmd: eeprom: add bus switching support for all i2c drivers
The i2c_init function is always provided when CONFIG_SYS_I2C is defined. No need to limit ourselves to just one supported I2C driver (soft_i2c). Update the #ifdef conditions to support bus switching for all I2C drivers. Cc: Heiko Schocher <hs@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
This commit is contained in:
parent
fbaf42724f
commit
2636ac65a8
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void eeprom_init(int bus)
|
|||
#endif
|
||||
|
||||
/* I2C EEPROM */
|
||||
#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C_SOFT)
|
||||
#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
|
||||
#if defined(CONFIG_SYS_I2C)
|
||||
if (bus >= 0)
|
||||
i2c_set_bus_num(bus);
|
||||
|
|
Loading…
Reference in a new issue