summaryrefslogtreecommitdiff
path: root/drivers/i2c/davinci_i2c.h
diff options
context:
space:
mode:
authorVitaly Andrianov <vitalya@ti.com>2014-04-04 13:16:52 -0400
committerTom Rini <trini@ti.com>2014-04-17 17:24:38 -0400
commite8459dcc33c3f3fc5a98b7b69bb3ddd7ad77f632 (patch)
tree7ac851714e6849d5e1d1e16e34707b39d109c1e9 /drivers/i2c/davinci_i2c.h
parent356d15ebb2b0bb2adde2ca4fe4cccb87f75531a0 (diff)
downloadu-boot-imx-e8459dcc33c3f3fc5a98b7b69bb3ddd7ad77f632.zip
u-boot-imx-e8459dcc33c3f3fc5a98b7b69bb3ddd7ad77f632.tar.gz
u-boot-imx-e8459dcc33c3f3fc5a98b7b69bb3ddd7ad77f632.tar.bz2
i2c, davinci: convert driver to new mutlibus/mutliadapter framework
- add davinci driver to new multibus/multiadpater support - adapted all config files, which uses this driver Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/davinci_i2c.h')
-rw-r--r--drivers/i2c/davinci_i2c.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/drivers/i2c/davinci_i2c.h b/drivers/i2c/davinci_i2c.h
index 79ff7a3..20d4342 100644
--- a/drivers/i2c/davinci_i2c.h
+++ b/drivers/i2c/davinci_i2c.h
@@ -12,18 +12,21 @@
#define I2C_WRITE 0
#define I2C_READ 1
-#define I2C_OA (I2C_BASE + 0x00)
-#define I2C_IE (I2C_BASE + 0x04)
-#define I2C_STAT (I2C_BASE + 0x08)
-#define I2C_SCLL (I2C_BASE + 0x0c)
-#define I2C_SCLH (I2C_BASE + 0x10)
-#define I2C_CNT (I2C_BASE + 0x14)
-#define I2C_DRR (I2C_BASE + 0x18)
-#define I2C_SA (I2C_BASE + 0x1c)
-#define I2C_DXR (I2C_BASE + 0x20)
-#define I2C_CON (I2C_BASE + 0x24)
-#define I2C_IV (I2C_BASE + 0x28)
-#define I2C_PSC (I2C_BASE + 0x30)
+struct i2c_regs {
+ u32 i2c_oa;
+ u32 i2c_ie;
+ u32 i2c_stat;
+ u32 i2c_scll;
+ u32 i2c_sclh;
+ u32 i2c_cnt;
+ u32 i2c_drr;
+ u32 i2c_sa;
+ u32 i2c_dxr;
+ u32 i2c_con;
+ u32 i2c_iv;
+ u32 res_2c;
+ u32 i2c_psc;
+};
/* I2C masks */