uboot/arch/arm/include/asm/arch-am33xx/i2c.h
<<
>>
Prefs
   1/*
   2 * (C) Copyright 2012
   3 * Texas Instruments, <www.ti.com>
   4 *
   5 * SPDX-License-Identifier:     GPL-2.0+
   6 */
   7#ifndef _I2C_AM33XX_H_
   8#define _I2C_AM33XX_H_
   9
  10#define  I2C_BASE1              0x44E0B000
  11#define  I2C_BASE2              0x4802A000
  12#define  I2C_BASE3              0x4819C000
  13
  14#define I2C_DEFAULT_BASE                I2C_BASE1
  15
  16struct i2c {
  17        unsigned short revnb_lo;        /* 0x00 */
  18        unsigned short res1;
  19        unsigned short revnb_hi;        /* 0x04 */
  20        unsigned short res2[5];
  21        unsigned short sysc;            /* 0x10 */
  22        unsigned short res3[9];
  23        unsigned short irqstatus_raw;   /* 0x24 */
  24        unsigned short res4;
  25        unsigned short stat;            /* 0x28 */
  26        unsigned short res5;
  27        unsigned short ie;              /* 0x2C */
  28        unsigned short res6;
  29        unsigned short irqenable_clr;   /* 0x30 */
  30        unsigned short res7;
  31        unsigned short iv;              /* 0x34 */
  32        unsigned short res8[45];
  33        unsigned short syss;            /* 0x90 */
  34        unsigned short res9;
  35        unsigned short buf;             /* 0x94 */
  36        unsigned short res10;
  37        unsigned short cnt;             /* 0x98 */
  38        unsigned short res11;
  39        unsigned short data;            /* 0x9C */
  40        unsigned short res13;
  41        unsigned short res14;           /* 0xA0 */
  42        unsigned short res15;
  43        unsigned short con;             /* 0xA4 */
  44        unsigned short res16;
  45        unsigned short oa;              /* 0xA8 */
  46        unsigned short res17;
  47        unsigned short sa;              /* 0xAC */
  48        unsigned short res18;
  49        unsigned short psc;             /* 0xB0 */
  50        unsigned short res19;
  51        unsigned short scll;            /* 0xB4 */
  52        unsigned short res20;
  53        unsigned short sclh;            /* 0xB8 */
  54        unsigned short res21;
  55        unsigned short systest;         /* 0xBC */
  56        unsigned short res22;
  57        unsigned short bufstat;         /* 0xC0 */
  58        unsigned short res23;
  59};
  60
  61#define I2C_IP_CLK                      48000000
  62#define I2C_INTERNAL_SAMPLING_CLK       12000000
  63
  64#endif /* _I2C_AM33XX_H_ */
  65