]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c:multibus:fix: Correct I2C_MULTI_BUS value when support for many buses is enabled
authorŁukasz Majewski <l.majewski@samsung.com>
Fri, 16 Aug 2013 13:31:45 +0000 (15:31 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 20 Aug 2013 09:15:32 +0000 (11:15 +0200)
The I2C_MULTI_BUS needs to be defined for correct I2C operation with
many software emulated I2C controllers.

This fix restores correct value of the I2C_MULTI_BUS changed by following
commit:

SHA1: 385c9ef5a7215b2b0c22836fee6c692dfc8559d7
i2c: add i2c_core and prepare for new multibus support

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
include/i2c.h

index d8674efe58b64a42daa31e00a7639982521c2890..8fd17d190af7cd532a445b77aaadceee00967bdd 100644 (file)
@@ -390,7 +390,7 @@ unsigned int i2c_get_bus_speed(void);
 # if !defined(CONFIG_SYS_MAX_I2C_BUS)
 #  define CONFIG_SYS_MAX_I2C_BUS               2
 # endif
-# define I2C_MULTI_BUS                         0
+# define I2C_MULTI_BUS                         1
 #else
 # define CONFIG_SYS_MAX_I2C_BUS                1
 # define I2C_MULTI_BUS                         0