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 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 23 | #ifndef _OMAP3_I2C_H_ |
| 24 | #define _OMAP3_I2C_H_ |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 25 | |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 26 | #define I2C_BUS_MAX 3 |
Dirk Behme | 5648e51 | 2008-12-14 09:47:18 +0100 | [diff] [blame] | 27 | #define I2C_DEFAULT_BASE I2C_BASE1 |
| 28 | |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 29 | struct i2c { |
| 30 | unsigned short rev; /* 0x00 */ |
| 31 | unsigned short res1; |
| 32 | unsigned short ie; /* 0x04 */ |
| 33 | unsigned short res2; |
| 34 | unsigned short stat; /* 0x08 */ |
| 35 | unsigned short res3; |
| 36 | unsigned short iv; /* 0x0C */ |
Steve Sakoman | e2bdc13 | 2010-07-19 20:31:55 -0700 | [diff] [blame] | 37 | unsigned short res4; |
| 38 | unsigned short syss; /* 0x10 */ |
| 39 | unsigned short res4a; |
Dirk Behme | 7a8f657 | 2009-11-02 20:36:26 +0100 | [diff] [blame] | 40 | unsigned short buf; /* 0x14 */ |
| 41 | unsigned short res5; |
| 42 | unsigned short cnt; /* 0x18 */ |
| 43 | unsigned short res6; |
| 44 | unsigned short data; /* 0x1C */ |
| 45 | unsigned short res7; |
| 46 | unsigned short sysc; /* 0x20 */ |
| 47 | unsigned short res8; |
| 48 | unsigned short con; /* 0x24 */ |
| 49 | unsigned short res9; |
| 50 | unsigned short oa; /* 0x28 */ |
| 51 | unsigned short res10; |
| 52 | unsigned short sa; /* 0x2C */ |
| 53 | unsigned short res11; |
| 54 | unsigned short psc; /* 0x30 */ |
| 55 | unsigned short res12; |
| 56 | unsigned short scll; /* 0x34 */ |
| 57 | unsigned short res13; |
| 58 | unsigned short sclh; /* 0x38 */ |
| 59 | unsigned short res14; |
| 60 | unsigned short systest; /* 0x3c */ |
| 61 | unsigned short res15; |
| 62 | }; |
| 63 | |
Steve Sakoman | 10acc71 | 2010-06-12 06:42:57 -0700 | [diff] [blame] | 64 | #endif /* _OMAP3_I2C_H_ */ |