i2c.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * (C) Copyright 2004-2010
  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. */
  23. #ifndef _OMAP4_I2C_H_
  24. #define _OMAP4_I2C_H_
  25. #define I2C_BUS_MAX 3
  26. #define I2C_DEFAULT_BASE I2C_BASE1
  27. struct i2c {
  28. unsigned short revnb_lo; /* 0x00 */
  29. unsigned short res1;
  30. unsigned short revnb_hi; /* 0x04 */
  31. unsigned short res2[13];
  32. unsigned short sysc; /* 0x20 */
  33. unsigned short res3;
  34. unsigned short irqstatus_raw; /* 0x24 */
  35. unsigned short res4;
  36. unsigned short stat; /* 0x28 */
  37. unsigned short res5;
  38. unsigned short ie; /* 0x2C */
  39. unsigned short res6;
  40. unsigned short irqenable_clr; /* 0x30 */
  41. unsigned short res7;
  42. unsigned short iv; /* 0x34 */
  43. unsigned short res8[45];
  44. unsigned short syss; /* 0x90 */
  45. unsigned short res9;
  46. unsigned short buf; /* 0x94 */
  47. unsigned short res10;
  48. unsigned short cnt; /* 0x98 */
  49. unsigned short res11;
  50. unsigned short data; /* 0x9C */
  51. unsigned short res13;
  52. unsigned short res14; /* 0xA0 */
  53. unsigned short res15;
  54. unsigned short con; /* 0xA4 */
  55. unsigned short res16;
  56. unsigned short oa; /* 0xA8 */
  57. unsigned short res17;
  58. unsigned short sa; /* 0xAC */
  59. unsigned short res18;
  60. unsigned short psc; /* 0xB0 */
  61. unsigned short res19;
  62. unsigned short scll; /* 0xB4 */
  63. unsigned short res20;
  64. unsigned short sclh; /* 0xB8 */
  65. unsigned short res21;
  66. unsigned short systest; /* 0xBC */
  67. unsigned short res22;
  68. unsigned short bufstat; /* 0xC0 */
  69. unsigned short res23;
  70. };
  71. #endif /* _OMAP4_I2C_H_ */