projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge with git://git.kernel.org/pub/scm/boot/u-boot/u-boot.git#ft_infr
[platform/kernel/u-boot.git]
/
include
/
440_i2c.h
diff --git
a/include/440_i2c.h
b/include/440_i2c.h
index
b0ac592
..
9c90a9e
100644
(file)
--- a/
include/440_i2c.h
+++ b/
include/440_i2c.h
@@
-1,7
+1,11
@@
#ifndef _440_i2c_h_
#define _440_i2c_h_
#ifndef _440_i2c_h_
#define _440_i2c_h_
+#if defined(CONFIG_440EP) || defined(CONFIG_440GR)
+#define I2C_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000700)
+#else
#define I2C_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000400)
#define I2C_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000400)
+#endif /*CONFIG_440EP CONFIG_440GR*/
#define I2C_REGISTERS_BASE_ADDRESS I2C_BASE_ADDR
#define IIC_MDBUF (I2C_REGISTERS_BASE_ADDRESS+IICMDBUF)
#define I2C_REGISTERS_BASE_ADDRESS I2C_BASE_ADDR
#define IIC_MDBUF (I2C_REGISTERS_BASE_ADDRESS+IICMDBUF)