1
2
3
4
5
6
7#ifndef _OMAP3_I2C_H_
8#define _OMAP3_I2C_H_
9
10#define I2C_BUS_MAX 3
11#define I2C_DEFAULT_BASE I2C_BASE1
12
13struct i2c {
14 unsigned short rev;
15 unsigned short res1;
16 unsigned short ie;
17 unsigned short res2;
18 unsigned short stat;
19 unsigned short res3;
20 unsigned short iv;
21 unsigned short res4;
22 unsigned short syss;
23 unsigned short res4a;
24 unsigned short buf;
25 unsigned short res5;
26 unsigned short cnt;
27 unsigned short res6;
28 unsigned short data;
29 unsigned short res7;
30 unsigned short sysc;
31 unsigned short res8;
32 unsigned short con;
33 unsigned short res9;
34 unsigned short oa;
35 unsigned short res10;
36 unsigned short sa;
37 unsigned short res11;
38 unsigned short psc;
39 unsigned short res12;
40 unsigned short scll;
41 unsigned short res13;
42 unsigned short sclh;
43 unsigned short res14;
44 unsigned short systest;
45 unsigned short res15;
46};
47
48#endif
49