mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge branch 'master' of git://git.denx.de/u-boot-i2c
This commit is contained in:
@@ -442,6 +442,14 @@ int i2c_set_bus_num(unsigned int bus)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if I2C_BUS_MAX == 4
|
||||
if (bus == 3)
|
||||
i2c_base = (struct i2c *)I2C_BASE4;
|
||||
else
|
||||
if (bus == 2)
|
||||
i2c_base = (struct i2c *)I2C_BASE3;
|
||||
else
|
||||
#endif
|
||||
#if I2C_BUS_MAX == 3
|
||||
if (bus == 2)
|
||||
i2c_base = (struct i2c *)I2C_BASE3;
|
||||
|
||||
Reference in New Issue
Block a user