1938717ceSSteve Sakoman /*
2938717ceSSteve Sakoman  * (C) Copyright 2004-2010
3938717ceSSteve Sakoman  * Texas Instruments, <www.ti.com>
4938717ceSSteve Sakoman  *
51a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
6938717ceSSteve Sakoman  */
7938717ceSSteve Sakoman #ifndef _OMAP4_I2C_H_
8938717ceSSteve Sakoman #define _OMAP4_I2C_H_
9938717ceSSteve Sakoman 
10a5322780SKoen Kooi #define I2C_BUS_MAX	4
11938717ceSSteve Sakoman #define I2C_DEFAULT_BASE	I2C_BASE1
12938717ceSSteve Sakoman 
13938717ceSSteve Sakoman struct i2c {
14938717ceSSteve Sakoman 	unsigned short revnb_lo;	/* 0x00 */
15938717ceSSteve Sakoman 	unsigned short res1;
16938717ceSSteve Sakoman 	unsigned short revnb_hi;	/* 0x04 */
17*3465f807SMugunthan V N 	unsigned short res2[5];
18*3465f807SMugunthan V N 	unsigned short sysc;		/* 0x10 */
19*3465f807SMugunthan V N 	unsigned short res3[9];
20938717ceSSteve Sakoman 	unsigned short irqstatus_raw;	/* 0x24 */
21938717ceSSteve Sakoman 	unsigned short res4;
22938717ceSSteve Sakoman 	unsigned short stat;		/* 0x28 */
23938717ceSSteve Sakoman 	unsigned short res5;
24938717ceSSteve Sakoman 	unsigned short ie;		/* 0x2C */
25938717ceSSteve Sakoman 	unsigned short res6;
26938717ceSSteve Sakoman 	unsigned short irqenable_clr;	/* 0x30 */
27938717ceSSteve Sakoman 	unsigned short res7;
28938717ceSSteve Sakoman 	unsigned short iv;		/* 0x34 */
29938717ceSSteve Sakoman 	unsigned short res8[45];
30938717ceSSteve Sakoman 	unsigned short syss;		/* 0x90 */
31938717ceSSteve Sakoman 	unsigned short res9;
32938717ceSSteve Sakoman 	unsigned short buf;		/* 0x94 */
33938717ceSSteve Sakoman 	unsigned short res10;
34938717ceSSteve Sakoman 	unsigned short cnt;		/* 0x98 */
35938717ceSSteve Sakoman 	unsigned short res11;
36938717ceSSteve Sakoman 	unsigned short data;		/* 0x9C */
37938717ceSSteve Sakoman 	unsigned short res13;
38938717ceSSteve Sakoman 	unsigned short res14;		/* 0xA0 */
39938717ceSSteve Sakoman 	unsigned short res15;
40938717ceSSteve Sakoman 	unsigned short con;		/* 0xA4 */
41938717ceSSteve Sakoman 	unsigned short res16;
42938717ceSSteve Sakoman 	unsigned short oa;		/* 0xA8 */
43938717ceSSteve Sakoman 	unsigned short res17;
44938717ceSSteve Sakoman 	unsigned short sa;		/* 0xAC */
45938717ceSSteve Sakoman 	unsigned short res18;
46938717ceSSteve Sakoman 	unsigned short psc;		/* 0xB0 */
47938717ceSSteve Sakoman 	unsigned short res19;
48938717ceSSteve Sakoman 	unsigned short scll;		/* 0xB4 */
49938717ceSSteve Sakoman 	unsigned short res20;
50938717ceSSteve Sakoman 	unsigned short sclh;		/* 0xB8 */
51938717ceSSteve Sakoman 	unsigned short res21;
52938717ceSSteve Sakoman 	unsigned short systest;		/* 0xBC */
53938717ceSSteve Sakoman 	unsigned short res22;
54938717ceSSteve Sakoman 	unsigned short bufstat;		/* 0xC0 */
55938717ceSSteve Sakoman 	unsigned short res23;
56938717ceSSteve Sakoman };
57938717ceSSteve Sakoman 
58938717ceSSteve Sakoman #endif /* _OMAP4_I2C_H_ */
59