mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
i2c, soft_i2c: deblock bus if switching to another i2c bus
Deblock i2c bus when switching to another i2c bus, if using i2c_set_bus_num(). Signed-off-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
This commit is contained in:
parent
c649dda537
commit
4bd5566ee8
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ int i2c_set_bus_num(unsigned int bus)
|
|||
int ret;
|
||||
|
||||
ret = i2x_mux_select_mux(bus);
|
||||
i2c_init_board();
|
||||
if (ret == 0)
|
||||
i2c_bus_num = bus;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue