blob: 48676dd7565ee12bccd06b711a9f5e7073b1286e [file] [log] [blame]
Dirk Behme5648e512008-12-14 09:47:18 +01001/*
2 * (C) Copyright 2004-2008
3 * Texas Instruments, <www.ti.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Dirk Behme5648e512008-12-14 09:47:18 +01006 */
Steve Sakoman10acc712010-06-12 06:42:57 -07007#ifndef _OMAP3_I2C_H_
8#define _OMAP3_I2C_H_
Dirk Behme5648e512008-12-14 09:47:18 +01009
10#define I2C_DEFAULT_BASE I2C_BASE1
11
Dirk Behme7a8f6572009-11-02 20:36:26 +010012struct i2c {
13 unsigned short rev; /* 0x00 */
14 unsigned short res1;
15 unsigned short ie; /* 0x04 */
16 unsigned short res2;
17 unsigned short stat; /* 0x08 */
18 unsigned short res3;
Adam Ford836eeea2017-04-08 17:34:29 -050019 unsigned short we; /* 0x0C */
Steve Sakomane2bdc132010-07-19 20:31:55 -070020 unsigned short res4;
21 unsigned short syss; /* 0x10 */
22 unsigned short res4a;
Dirk Behme7a8f6572009-11-02 20:36:26 +010023 unsigned short buf; /* 0x14 */
24 unsigned short res5;
25 unsigned short cnt; /* 0x18 */
26 unsigned short res6;
27 unsigned short data; /* 0x1C */
28 unsigned short res7;
29 unsigned short sysc; /* 0x20 */
30 unsigned short res8;
31 unsigned short con; /* 0x24 */
32 unsigned short res9;
33 unsigned short oa; /* 0x28 */
34 unsigned short res10;
35 unsigned short sa; /* 0x2C */
36 unsigned short res11;
37 unsigned short psc; /* 0x30 */
38 unsigned short res12;
39 unsigned short scll; /* 0x34 */
40 unsigned short res13;
41 unsigned short sclh; /* 0x38 */
42 unsigned short res14;
43 unsigned short systest; /* 0x3c */
44 unsigned short res15;
Adam Ford836eeea2017-04-08 17:34:29 -050045 unsigned short bufstat; /* 0x40 */
46 unsigned short res16;
47 unsigned short oa1; /* 0x44 */
48 unsigned short res17;
49 unsigned short oa2; /* 0x48 */
50 unsigned short res18;
51 unsigned short oa3; /* 0x4c */
52 unsigned short res19;
53 unsigned short actoa; /* 0x50 */
54 unsigned short res20;
55 unsigned short sblock; /* 0x54 */
56 unsigned short res21;
Dirk Behme7a8f6572009-11-02 20:36:26 +010057};
58
Steve Sakoman10acc712010-06-12 06:42:57 -070059#endif /* _OMAP3_I2C_H_ */