1*938717ceSSteve Sakoman /* 2*938717ceSSteve Sakoman * (C) Copyright 2004-2010 3*938717ceSSteve Sakoman * Texas Instruments, <www.ti.com> 4*938717ceSSteve Sakoman * 5*938717ceSSteve Sakoman * See file CREDITS for list of people who contributed to this 6*938717ceSSteve Sakoman * project. 7*938717ceSSteve Sakoman * 8*938717ceSSteve Sakoman * This program is free software; you can redistribute it and/or 9*938717ceSSteve Sakoman * modify it under the terms of the GNU General Public License as 10*938717ceSSteve Sakoman * published by the Free Software Foundation; either version 2 of 11*938717ceSSteve Sakoman * the License, or (at your option) any later version. 12*938717ceSSteve Sakoman * 13*938717ceSSteve Sakoman * This program is distributed in the hope that it will be useful, 14*938717ceSSteve Sakoman * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*938717ceSSteve Sakoman * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*938717ceSSteve Sakoman * GNU General Public License for more details. 17*938717ceSSteve Sakoman * 18*938717ceSSteve Sakoman * You should have received a copy of the GNU General Public License 19*938717ceSSteve Sakoman * along with this program; if not, write to the Free Software 20*938717ceSSteve Sakoman * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*938717ceSSteve Sakoman * MA 02111-1307 USA 22*938717ceSSteve Sakoman */ 23*938717ceSSteve Sakoman #ifndef _OMAP4_I2C_H_ 24*938717ceSSteve Sakoman #define _OMAP4_I2C_H_ 25*938717ceSSteve Sakoman 26*938717ceSSteve Sakoman #define I2C_BUS_MAX 3 27*938717ceSSteve Sakoman #define I2C_DEFAULT_BASE I2C_BASE1 28*938717ceSSteve Sakoman 29*938717ceSSteve Sakoman struct i2c { 30*938717ceSSteve Sakoman unsigned short revnb_lo; /* 0x00 */ 31*938717ceSSteve Sakoman unsigned short res1; 32*938717ceSSteve Sakoman unsigned short revnb_hi; /* 0x04 */ 33*938717ceSSteve Sakoman unsigned short res2[13]; 34*938717ceSSteve Sakoman unsigned short sysc; /* 0x20 */ 35*938717ceSSteve Sakoman unsigned short res3; 36*938717ceSSteve Sakoman unsigned short irqstatus_raw; /* 0x24 */ 37*938717ceSSteve Sakoman unsigned short res4; 38*938717ceSSteve Sakoman unsigned short stat; /* 0x28 */ 39*938717ceSSteve Sakoman unsigned short res5; 40*938717ceSSteve Sakoman unsigned short ie; /* 0x2C */ 41*938717ceSSteve Sakoman unsigned short res6; 42*938717ceSSteve Sakoman unsigned short irqenable_clr; /* 0x30 */ 43*938717ceSSteve Sakoman unsigned short res7; 44*938717ceSSteve Sakoman unsigned short iv; /* 0x34 */ 45*938717ceSSteve Sakoman unsigned short res8[45]; 46*938717ceSSteve Sakoman unsigned short syss; /* 0x90 */ 47*938717ceSSteve Sakoman unsigned short res9; 48*938717ceSSteve Sakoman unsigned short buf; /* 0x94 */ 49*938717ceSSteve Sakoman unsigned short res10; 50*938717ceSSteve Sakoman unsigned short cnt; /* 0x98 */ 51*938717ceSSteve Sakoman unsigned short res11; 52*938717ceSSteve Sakoman unsigned short data; /* 0x9C */ 53*938717ceSSteve Sakoman unsigned short res13; 54*938717ceSSteve Sakoman unsigned short res14; /* 0xA0 */ 55*938717ceSSteve Sakoman unsigned short res15; 56*938717ceSSteve Sakoman unsigned short con; /* 0xA4 */ 57*938717ceSSteve Sakoman unsigned short res16; 58*938717ceSSteve Sakoman unsigned short oa; /* 0xA8 */ 59*938717ceSSteve Sakoman unsigned short res17; 60*938717ceSSteve Sakoman unsigned short sa; /* 0xAC */ 61*938717ceSSteve Sakoman unsigned short res18; 62*938717ceSSteve Sakoman unsigned short psc; /* 0xB0 */ 63*938717ceSSteve Sakoman unsigned short res19; 64*938717ceSSteve Sakoman unsigned short scll; /* 0xB4 */ 65*938717ceSSteve Sakoman unsigned short res20; 66*938717ceSSteve Sakoman unsigned short sclh; /* 0xB8 */ 67*938717ceSSteve Sakoman unsigned short res21; 68*938717ceSSteve Sakoman unsigned short systest; /* 0xBC */ 69*938717ceSSteve Sakoman unsigned short res22; 70*938717ceSSteve Sakoman unsigned short bufstat; /* 0xC0 */ 71*938717ceSSteve Sakoman unsigned short res23; 72*938717ceSSteve Sakoman }; 73*938717ceSSteve Sakoman 74*938717ceSSteve Sakoman #endif /* _OMAP4_I2C_H_ */ 75