summaryrefslogtreecommitdiff
path: root/Omap44xxPkg/Include/Omap4430/Omap4430I2c.h
blob: 50d5a4a052663763280407dafe600979ae5bb346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/** @file

  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>

  This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#ifndef __OMAP4430I2C_H__
#define __OMAP4430I2C_H__

//I2C register definitions.
#define I2C1BASE        0x48070000

#define I2C_IE          (I2C1BASE + 0x84)
#define XRDY_IE         BIT4
#define RRDY_IE         BIT3
#define ARDY_IE         BIT2
#define NACK_IE         BIT1

#define I2C_STAT        (I2C1BASE + 0x88)
#define BB              BIT12
#define XRDY            BIT4
#define RRDY            BIT3
#define ARDY            BIT2
#define NACK            BIT1

#define I2C_WE          (I2C1BASE + 0x34)
#define I2C_SYSS        (I2C1BASE + 0x90)
#define I2C_BUF         (I2C1BASE + 0x94)
#define I2C_CNT         (I2C1BASE + 0x98)
#define I2C_DATA        (I2C1BASE + 0x9C)
#define I2C_SYSC        (I2C1BASE + 0x10)

#define I2C_CON         (I2C1BASE + 0xA4)
#define STT             BIT0
#define STP             BIT1
#define XSA             BIT8
#define TRX             BIT9
#define MST             BIT10
#define I2C_EN          BIT15

//#define I2C_OA0         (I2C1BASE + 0x28)
#define I2C_SA          (I2C1BASE + 0xAC)
#define I2C_PSC         (I2C1BASE + 0xB0)
#define I2C_SCLL        (I2C1BASE + 0xB4)
#define I2C_SCLH        (I2C1BASE + 0xB8)
#define I2C_SYSTEST     (I2C1BASE + 0xBC)
#define I2C_BUFSTAT     (I2C1BASE + 0xC0)
#define I2C_OA1         (I2C1BASE + 0xC4)
#define I2C_OA2         (I2C1BASE + 0xC8)
#define I2C_OA3         (I2C1BASE + 0xCC)
#define I2C_ACTOA       (I2C1BASE + 0xD0)
#define I2C_SBLOCK      (I2C1BASE + 0xD4)

#endif //__OMAP4430I2C_H__