Sricharan | 9310ff7 | 2011-11-15 09:49:55 -0500 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2004-2010 |
| 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+ |
Sricharan | 9310ff7 | 2011-11-15 09:49:55 -0500 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _OMAP5_I2C_H_ |
| 8 | #define _OMAP5_I2C_H_ |
| 9 | |
Lubomir Popov | 852f487 | 2013-04-08 21:49:43 +0000 | [diff] [blame] | 10 | #define I2C_BUS_MAX 5 |
Sricharan | 9310ff7 | 2011-11-15 09:49:55 -0500 | [diff] [blame] | 11 | #define I2C_DEFAULT_BASE I2C_BASE1 |
| 12 | |
| 13 | struct i2c { |
| 14 | unsigned short revnb_lo; /* 0x00 */ |
| 15 | unsigned short res1; |
| 16 | unsigned short revnb_hi; /* 0x04 */ |
Mugunthan V N | 891a8c4 | 2016-07-18 15:10:57 +0530 | [diff] [blame] | 17 | unsigned short res2[5]; |
| 18 | unsigned short sysc; /* 0x10 */ |
| 19 | unsigned short res3[9]; |
Sricharan | 9310ff7 | 2011-11-15 09:49:55 -0500 | [diff] [blame] | 20 | unsigned short irqstatus_raw; /* 0x24 */ |
| 21 | unsigned short res4; |
| 22 | unsigned short stat; /* 0x28 */ |
| 23 | unsigned short res5; |
| 24 | unsigned short ie; /* 0x2C */ |
| 25 | unsigned short res6; |
| 26 | unsigned short irqenable_clr; /* 0x30 */ |
| 27 | unsigned short res7; |
| 28 | unsigned short iv; /* 0x34 */ |
| 29 | unsigned short res8[45]; |
| 30 | unsigned short syss; /* 0x90 */ |
| 31 | unsigned short res9; |
| 32 | unsigned short buf; /* 0x94 */ |
| 33 | unsigned short res10; |
| 34 | unsigned short cnt; /* 0x98 */ |
| 35 | unsigned short res11; |
| 36 | unsigned short data; /* 0x9C */ |
| 37 | unsigned short res13; |
| 38 | unsigned short res14; /* 0xA0 */ |
| 39 | unsigned short res15; |
| 40 | unsigned short con; /* 0xA4 */ |
| 41 | unsigned short res16; |
| 42 | unsigned short oa; /* 0xA8 */ |
| 43 | unsigned short res17; |
| 44 | unsigned short sa; /* 0xAC */ |
| 45 | unsigned short res18; |
| 46 | unsigned short psc; /* 0xB0 */ |
| 47 | unsigned short res19; |
| 48 | unsigned short scll; /* 0xB4 */ |
| 49 | unsigned short res20; |
| 50 | unsigned short sclh; /* 0xB8 */ |
| 51 | unsigned short res21; |
| 52 | unsigned short systest; /* 0xBC */ |
| 53 | unsigned short res22; |
| 54 | unsigned short bufstat; /* 0xC0 */ |
| 55 | unsigned short res23; |
| 56 | }; |
| 57 | |
| 58 | #endif /* _OMAP5_I2C_H_ */ |