Omap3530I2c.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /** @file
  2. Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef __OMAP3530I2C_H__
  6. #define __OMAP3530I2C_H__
  7. //I2C register definitions.
  8. #define I2C1BASE 0x48070000
  9. #define I2C_IE (I2C1BASE + 0x4)
  10. #define XRDY_IE BIT4
  11. #define RRDY_IE BIT3
  12. #define ARDY_IE BIT2
  13. #define NACK_IE BIT1
  14. #define I2C_STAT (I2C1BASE + 0x8)
  15. #define BB BIT12
  16. #define XRDY BIT4
  17. #define RRDY BIT3
  18. #define ARDY BIT2
  19. #define NACK BIT1
  20. #define I2C_WE (I2C1BASE + 0xC)
  21. #define I2C_SYSS (I2C1BASE + 0x10)
  22. #define I2C_BUF (I2C1BASE + 0x14)
  23. #define I2C_CNT (I2C1BASE + 0x18)
  24. #define I2C_DATA (I2C1BASE + 0x1C)
  25. #define I2C_SYSC (I2C1BASE + 0x20)
  26. #define I2C_CON (I2C1BASE + 0x24)
  27. #define STT BIT0
  28. #define STP BIT1
  29. #define XSA BIT8
  30. #define TRX BIT9
  31. #define MST BIT10
  32. #define I2C_EN BIT15
  33. #define I2C_OA0 (I2C1BASE + 0x28)
  34. #define I2C_SA (I2C1BASE + 0x2C)
  35. #define I2C_PSC (I2C1BASE + 0x30)
  36. #define I2C_SCLL (I2C1BASE + 0x34)
  37. #define I2C_SCLH (I2C1BASE + 0x38)
  38. #define I2C_SYSTEST (I2C1BASE + 0x3C)
  39. #define I2C_BUFSTAT (I2C1BASE + 0x40)
  40. #define I2C_OA1 (I2C1BASE + 0x44)
  41. #define I2C_OA2 (I2C1BASE + 0x48)
  42. #define I2C_OA3 (I2C1BASE + 0x4C)
  43. #define I2C_ACTOA (I2C1BASE + 0x50)
  44. #define I2C_SBLOCK (I2C1BASE + 0x54)
  45. #endif //__OMAP3530I2C_H__