]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/IceCube.h
Fix problems with I2C support for mpc5200
[karo-tx-uboot.git] / include / configs / IceCube.h
index 9b3b4b45880d328204d44714762e448a22697b15..49abedeb32e60d4c0dd3bade85097677c395e6f6 100644 (file)
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         1       /* If defined then I2C module #2 is used
-                                        * otherwise I2C module #1 is used */
-#ifdef CONFIG_MPC5200
-#define CFG_I2C_SPEED          0x3D    /* 86KHz given 133MHz IPBI */
-#else
-#define CFG_I2C_SPEED          0x35    /* 86KHz given 33MHz IPBI */
-#endif
+#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+
+#define CFG_I2C_SPEED          100000 /* 100 kHz */
 #define CFG_I2C_SLAVE          0x7F
 
 /*
 #define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
 #define CFG_I2C_EEPROM_ADDR_LEN                1
 #define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 35
+#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
 
 /*
  * Flash configuration