]> git.proxmox.com Git - mirror_edk2.git/blob - BeagleBoardPkg/Include/Omap3530/Omap3530I2c.h
Adding support for BeagleBoard.
[mirror_edk2.git] / BeagleBoardPkg / Include / Omap3530 / Omap3530I2c.h
1 /** @file
2
3 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
4
5 All rights reserved. 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 (0x1UL << 4)
23 #define RRDY_IE (0x1UL << 3)
24 #define ARDY_IE (0x1UL << 2)
25 #define NACK_IE (0x1UL << 1)
26
27 #define I2C_STAT (I2C1BASE + 0x8)
28 #define BB (0x1UL << 12)
29 #define XRDY (0x1UL << 4)
30 #define RRDY (0x1UL << 3)
31 #define ARDY (0x1UL << 2)
32 #define NACK (0x1UL << 1)
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 (0x1UL << 0)
43 #define STP (0x1UL << 1)
44 #define XSA (0x1UL << 8)
45 #define TRX (0x1UL << 9)
46 #define MST (0x1UL << 10)
47 #define I2C_EN (0x1UL << 15)
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__