]> git.sur5r.net Git - u-boot/blobdiff - include/440_i2c.h
Add support for AMCC PPC440EP/GR eval boards Yosemite and Yellowstone.
[u-boot] / include / 440_i2c.h
index b0ac592faf73d86b265219c9534dff80cce6ea88..01a5bacaa4d667bb079638e7b8e316328cfd84f2 100644 (file)
@@ -1,7 +1,11 @@
 #ifndef _440_i2c_h_
 #define _440_i2c_h_
 
+#if defined(CONFIG_440_EP) || defined(CONFIG_440_GR) 
+#define    I2C_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000700)
+#else
 #define    I2C_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000400)
+#endif /*CONFIG_440_EP CONFIG_440_GR*/
 
 #define           I2C_REGISTERS_BASE_ADDRESS I2C_BASE_ADDR
 #define    IIC_MDBUF   (I2C_REGISTERS_BASE_ADDRESS+IICMDBUF)