diff mbox

[U-Boot,01/14] omap4: i2c: correct register offset for sync register

Message ID 20160718094109.2076-2-mugunthanvnm@ti.com
State Accepted
Commit 3465f807d4b90378d86b3904ce2db196462ddd4e
Delegated to: Heiko Schocher
Headers show

Commit Message

Mugunthan V N July 18, 2016, 9:40 a.m. UTC
The register offset of i2c_sysc offset is not correct as per
omap4 TRM [1], correct the offsets as per the documentation.

[1] - http://www.ti.com/lit/ug/swpu235ab/swpu235ab.pdf

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 arch/arm/include/asm/arch-omap4/i2c.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Tom Rini July 18, 2016, 2:27 p.m. UTC | #1
On Mon, Jul 18, 2016 at 03:10:56PM +0530, Mugunthan V N wrote:

> The register offset of i2c_sysc offset is not correct as per
> omap4 TRM [1], correct the offsets as per the documentation.
> 
> [1] - http://www.ti.com/lit/ug/swpu235ab/swpu235ab.pdf
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-omap4/i2c.h b/arch/arm/include/asm/arch-omap4/i2c.h
index adc8eb2..463e979 100644
--- a/arch/arm/include/asm/arch-omap4/i2c.h
+++ b/arch/arm/include/asm/arch-omap4/i2c.h
@@ -14,9 +14,9 @@  struct i2c {
 	unsigned short revnb_lo;	/* 0x00 */
 	unsigned short res1;
 	unsigned short revnb_hi;	/* 0x04 */
-	unsigned short res2[13];
-	unsigned short sysc;		/* 0x20 */
-	unsigned short res3;
+	unsigned short res2[5];
+	unsigned short sysc;		/* 0x10 */
+	unsigned short res3[9];
 	unsigned short irqstatus_raw;	/* 0x24 */
 	unsigned short res4;
 	unsigned short stat;		/* 0x28 */