Patchwork [U-Boot] OMAP5: I2C: Set I2C_BUS_MAX to 5 to enable I2C4 and I2C5

login
register
mail settings
Submitter Lubomir Popov
Date March 29, 2013, 3:29 p.m.
Message ID <5155B369.50906@mm-sol.com>
Download mbox | patch
Permalink /patch/232483/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Lubomir Popov - March 29, 2013, 3:29 p.m.
Needed in order to be able to select I2C4 and I2C5 via "i2c dev".

Signed-off-by: Lubomir Popov <lpopov@mm-sol.com>

---
 arch/arm/include/asm/arch-omap5/i2c.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/arm/include/asm/arch-omap5/i2c.h
b/arch/arm/include/asm/arch-omap5/i2c.h
index 68be03b..ec39a53 100644
--- a/arch/arm/include/asm/arch-omap5/i2c.h
+++ b/arch/arm/include/asm/arch-omap5/i2c.h
@@ -23,7 +23,7 @@ 
 #ifndef _OMAP5_I2C_H_
 #define _OMAP5_I2C_H_

-#define I2C_BUS_MAX	3
+#define I2C_BUS_MAX	5
 #define I2C_DEFAULT_BASE	I2C_BASE1

 struct i2c {