Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2004-2008 |
| 4 | * Texas Instruments, <www.ti.com> |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 5 | */ |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 6 | #ifndef _OMAP3_I2C_H_ |
| 7 | #define _OMAP3_I2C_H_ |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 8 | |
| 9 | #define I2C_DEFAULT_BASE I2C_BASE1 |
| 10 | |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 11 | struct i2c { |
| 12 | unsigned short rev; /* 0x00 */ |
| 13 | unsigned short res1; |
| 14 | unsigned short ie; /* 0x04 */ |
| 15 | unsigned short res2; |
| 16 | unsigned short stat; /* 0x08 */ |
| 17 | unsigned short res3; |
Adam Ford | 836eeea | 2017-04-08 17:34:29 -0500 | [diff] [blame] | 18 | unsigned short we; /* 0x0C */ |
Steve Sakoman | e2bdc13 | 2010-07-19 20:31:55 -0700 | [diff] [blame] | 19 | unsigned short res4; |
| 20 | unsigned short syss; /* 0x10 */ |
| 21 | unsigned short res4a; |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 22 | unsigned short buf; /* 0x14 */ |
| 23 | unsigned short res5; |
| 24 | unsigned short cnt; /* 0x18 */ |
| 25 | unsigned short res6; |
| 26 | unsigned short data; /* 0x1C */ |
| 27 | unsigned short res7; |
| 28 | unsigned short sysc; /* 0x20 */ |
| 29 | unsigned short res8; |
| 30 | unsigned short con; /* 0x24 */ |
| 31 | unsigned short res9; |
| 32 | unsigned short oa; /* 0x28 */ |
| 33 | unsigned short res10; |
| 34 | unsigned short sa; /* 0x2C */ |
| 35 | unsigned short res11; |
| 36 | unsigned short psc; /* 0x30 */ |
| 37 | unsigned short res12; |
| 38 | unsigned short scll; /* 0x34 */ |
| 39 | unsigned short res13; |
| 40 | unsigned short sclh; /* 0x38 */ |
| 41 | unsigned short res14; |
| 42 | unsigned short systest; /* 0x3c */ |
| 43 | unsigned short res15; |
Adam Ford | 836eeea | 2017-04-08 17:34:29 -0500 | [diff] [blame] | 44 | unsigned short bufstat; /* 0x40 */ |
| 45 | unsigned short res16; |
| 46 | unsigned short oa1; /* 0x44 */ |
| 47 | unsigned short res17; |
| 48 | unsigned short oa2; /* 0x48 */ |
| 49 | unsigned short res18; |
| 50 | unsigned short oa3; /* 0x4c */ |
| 51 | unsigned short res19; |
| 52 | unsigned short actoa; /* 0x50 */ |
| 53 | unsigned short res20; |
| 54 | unsigned short sblock; /* 0x54 */ |
| 55 | unsigned short res21; |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 56 | }; |
| 57 | |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 58 | #endif /* _OMAP3_I2C_H_ */ |