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