1938717ceSSteve Sakoman /* 2938717ceSSteve Sakoman * (C) Copyright 2004-2010 3938717ceSSteve Sakoman * Texas Instruments, <www.ti.com> 4938717ceSSteve Sakoman * 5938717ceSSteve Sakoman * See file CREDITS for list of people who contributed to this 6938717ceSSteve Sakoman * project. 7938717ceSSteve Sakoman * 8938717ceSSteve Sakoman * This program is free software; you can redistribute it and/or 9938717ceSSteve Sakoman * modify it under the terms of the GNU General Public License as 10938717ceSSteve Sakoman * published by the Free Software Foundation; either version 2 of 11938717ceSSteve Sakoman * the License, or (at your option) any later version. 12938717ceSSteve Sakoman * 13938717ceSSteve Sakoman * This program is distributed in the hope that it will be useful, 14938717ceSSteve Sakoman * but WITHOUT ANY WARRANTY; without even the implied warranty of 15938717ceSSteve Sakoman * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16938717ceSSteve Sakoman * GNU General Public License for more details. 17938717ceSSteve Sakoman * 18938717ceSSteve Sakoman * You should have received a copy of the GNU General Public License 19938717ceSSteve Sakoman * along with this program; if not, write to the Free Software 20938717ceSSteve Sakoman * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21938717ceSSteve Sakoman * MA 02111-1307 USA 22938717ceSSteve Sakoman */ 23938717ceSSteve Sakoman #ifndef _OMAP4_I2C_H_ 24938717ceSSteve Sakoman #define _OMAP4_I2C_H_ 25938717ceSSteve Sakoman 26*a5322780SKoen Kooi #define I2C_BUS_MAX 4 27938717ceSSteve Sakoman #define I2C_DEFAULT_BASE I2C_BASE1 28938717ceSSteve Sakoman 29938717ceSSteve Sakoman struct i2c { 30938717ceSSteve Sakoman unsigned short revnb_lo; /* 0x00 */ 31938717ceSSteve Sakoman unsigned short res1; 32938717ceSSteve Sakoman unsigned short revnb_hi; /* 0x04 */ 33938717ceSSteve Sakoman unsigned short res2[13]; 34938717ceSSteve Sakoman unsigned short sysc; /* 0x20 */ 35938717ceSSteve Sakoman unsigned short res3; 36938717ceSSteve Sakoman unsigned short irqstatus_raw; /* 0x24 */ 37938717ceSSteve Sakoman unsigned short res4; 38938717ceSSteve Sakoman unsigned short stat; /* 0x28 */ 39938717ceSSteve Sakoman unsigned short res5; 40938717ceSSteve Sakoman unsigned short ie; /* 0x2C */ 41938717ceSSteve Sakoman unsigned short res6; 42938717ceSSteve Sakoman unsigned short irqenable_clr; /* 0x30 */ 43938717ceSSteve Sakoman unsigned short res7; 44938717ceSSteve Sakoman unsigned short iv; /* 0x34 */ 45938717ceSSteve Sakoman unsigned short res8[45]; 46938717ceSSteve Sakoman unsigned short syss; /* 0x90 */ 47938717ceSSteve Sakoman unsigned short res9; 48938717ceSSteve Sakoman unsigned short buf; /* 0x94 */ 49938717ceSSteve Sakoman unsigned short res10; 50938717ceSSteve Sakoman unsigned short cnt; /* 0x98 */ 51938717ceSSteve Sakoman unsigned short res11; 52938717ceSSteve Sakoman unsigned short data; /* 0x9C */ 53938717ceSSteve Sakoman unsigned short res13; 54938717ceSSteve Sakoman unsigned short res14; /* 0xA0 */ 55938717ceSSteve Sakoman unsigned short res15; 56938717ceSSteve Sakoman unsigned short con; /* 0xA4 */ 57938717ceSSteve Sakoman unsigned short res16; 58938717ceSSteve Sakoman unsigned short oa; /* 0xA8 */ 59938717ceSSteve Sakoman unsigned short res17; 60938717ceSSteve Sakoman unsigned short sa; /* 0xAC */ 61938717ceSSteve Sakoman unsigned short res18; 62938717ceSSteve Sakoman unsigned short psc; /* 0xB0 */ 63938717ceSSteve Sakoman unsigned short res19; 64938717ceSSteve Sakoman unsigned short scll; /* 0xB4 */ 65938717ceSSteve Sakoman unsigned short res20; 66938717ceSSteve Sakoman unsigned short sclh; /* 0xB8 */ 67938717ceSSteve Sakoman unsigned short res21; 68938717ceSSteve Sakoman unsigned short systest; /* 0xBC */ 69938717ceSSteve Sakoman unsigned short res22; 70938717ceSSteve Sakoman unsigned short bufstat; /* 0xC0 */ 71938717ceSSteve Sakoman unsigned short res23; 72938717ceSSteve Sakoman }; 73938717ceSSteve Sakoman 74938717ceSSteve Sakoman #endif /* _OMAP4_I2C_H_ */ 75