]> git.proxmox.com Git - mirror_edk2.git/blob - Omap35xxPkg/Include/Omap3530/Omap3530I2c.h
Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / Omap35xxPkg / Include / Omap3530 / Omap3530I2c.h
1 /** @file
2
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __OMAP3530I2C_H__
16 #define __OMAP3530I2C_H__
17
18 //I2C register definitions.
19 #define I2C1BASE 0x48070000
20
21 #define I2C_IE (I2C1BASE + 0x4)
22 #define XRDY_IE BIT4
23 #define RRDY_IE BIT3
24 #define ARDY_IE BIT2
25 #define NACK_IE BIT1
26
27 #define I2C_STAT (I2C1BASE + 0x8)
28 #define BB BIT12
29 #define XRDY BIT4
30 #define RRDY BIT3
31 #define ARDY BIT2
32 #define NACK BIT1
33
34 #define I2C_WE (I2C1BASE + 0xC)
35 #define I2C_SYSS (I2C1BASE + 0x10)
36 #define I2C_BUF (I2C1BASE + 0x14)
37 #define I2C_CNT (I2C1BASE + 0x18)
38 #define I2C_DATA (I2C1BASE + 0x1C)
39 #define I2C_SYSC (I2C1BASE + 0x20)
40
41 #define I2C_CON (I2C1BASE + 0x24)
42 #define STT BIT0
43 #define STP BIT1
44 #define XSA BIT8
45 #define TRX BIT9
46 #define MST BIT10
47 #define I2C_EN BIT15
48
49 #define I2C_OA0 (I2C1BASE + 0x28)
50 #define I2C_SA (I2C1BASE + 0x2C)
51 #define I2C_PSC (I2C1BASE + 0x30)
52 #define I2C_SCLL (I2C1BASE + 0x34)
53 #define I2C_SCLH (I2C1BASE + 0x38)
54 #define I2C_SYSTEST (I2C1BASE + 0x3C)
55 #define I2C_BUFSTAT (I2C1BASE + 0x40)
56 #define I2C_OA1 (I2C1BASE + 0x44)
57 #define I2C_OA2 (I2C1BASE + 0x48)
58 #define I2C_OA3 (I2C1BASE + 0x4C)
59 #define I2C_ACTOA (I2C1BASE + 0x50)
60 #define I2C_SBLOCK (I2C1BASE + 0x54)
61
62 #endif //__OMAP3530I2C_H__