Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004-2008 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 6 | */ |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 7 | #ifndef _OMAP3_I2C_H_ |
| 8 | #define _OMAP3_I2C_H_ |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 9 | |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 10 | #define I2C_BUS_MAX 3 |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 11 | #define I2C_DEFAULT_BASE I2C_BASE1 |
| 12 | |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 13 | struct i2c { |
| 14 | unsigned short rev; /* 0x00 */ |
| 15 | unsigned short res1; |
| 16 | unsigned short ie; /* 0x04 */ |
| 17 | unsigned short res2; |
| 18 | unsigned short stat; /* 0x08 */ |
| 19 | unsigned short res3; |
| 20 | unsigned short iv; /* 0x0C */ |
Steve Sakoman | e2bdc13 | 2010-07-19 20:31:55 -0700 | [diff] [blame] | 21 | unsigned short res4; |
| 22 | unsigned short syss; /* 0x10 */ |
| 23 | unsigned short res4a; |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 24 | unsigned short buf; /* 0x14 */ |
| 25 | unsigned short res5; |
| 26 | unsigned short cnt; /* 0x18 */ |
| 27 | unsigned short res6; |
| 28 | unsigned short data; /* 0x1C */ |
| 29 | unsigned short res7; |
| 30 | unsigned short sysc; /* 0x20 */ |
| 31 | unsigned short res8; |
| 32 | unsigned short con; /* 0x24 */ |
| 33 | unsigned short res9; |
| 34 | unsigned short oa; /* 0x28 */ |
| 35 | unsigned short res10; |
| 36 | unsigned short sa; /* 0x2C */ |
| 37 | unsigned short res11; |
| 38 | unsigned short psc; /* 0x30 */ |
| 39 | unsigned short res12; |
| 40 | unsigned short scll; /* 0x34 */ |
| 41 | unsigned short res13; |
| 42 | unsigned short sclh; /* 0x38 */ |
| 43 | unsigned short res14; |
| 44 | unsigned short systest; /* 0x3c */ |
| 45 | unsigned short res15; |
| 46 | }; |
| 47 | |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 48 | #endif /* _OMAP3_I2C_H_ */ |