From d708395d2f83295fba9d9b18823ce17046793590 Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Mon, 19 Jul 2010 20:31:55 -0700 Subject: ARMV7: Modify i2c driver for more reliable operation on OMAP4 This patch modifies the init routine to follow the TRM recommendations. It also modifies the i2c_read_byte function to reflect subtle differences between the i2c controller in OMAP3 and OMAP4. Signed-off-by: Steve Sakoman Acked-by: Nishanth Menon Acked-by: Heiko Schocher Signed-off-by: Sandeep Paulraj --- arch/arm/include/asm/arch-omap3/i2c.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/include/asm/arch-omap3/i2c.h b/arch/arm/include/asm/arch-omap3/i2c.h index 7a4a73aa91..d2e7488fd1 100644 --- a/arch/arm/include/asm/arch-omap3/i2c.h +++ b/arch/arm/include/asm/arch-omap3/i2c.h @@ -34,7 +34,9 @@ struct i2c { unsigned short stat; /* 0x08 */ unsigned short res3; unsigned short iv; /* 0x0C */ - unsigned short res4[3]; + unsigned short res4; + unsigned short syss; /* 0x10 */ + unsigned short res4a; unsigned short buf; /* 0x14 */ unsigned short res5; unsigned short cnt; /* 0x18 */ -- cgit v1.2.1