]> git.sur5r.net Git - u-boot/blobdiff - include/440_i2c.h
Add rudimentary handling of alternate settings of USB interfaces - to fix
[u-boot] / include / 440_i2c.h
index d04976646d86521b7a3d260539467401a811be28..9c90a9e3c4876170d83180c989ef7b6bf92967b4 100644 (file)
@@ -1,10 +1,11 @@
-
-
-
 #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)
+#endif /*CONFIG_440EP CONFIG_440GR*/
 
 #define           I2C_REGISTERS_BASE_ADDRESS I2C_BASE_ADDR
 #define    IIC_MDBUF   (I2C_REGISTERS_BASE_ADDRESS+IICMDBUF)