diff options
author | dzu <dzu> | 2003-09-30 14:08:43 +0000 |
---|---|---|
committer | dzu <dzu> | 2003-09-30 14:08:43 +0000 |
commit | ab209d510710e0059260e3ea17c11741573296b9 (patch) | |
tree | 127c5d62873d5ca9caf847d33c6af50338e35d26 /include | |
parent | 87970ebeb5153bb8650d3f031148e82e30ec3584 (diff) | |
download | u-boot-imx-ab209d510710e0059260e3ea17c11741573296b9.zip u-boot-imx-ab209d510710e0059260e3ea17c11741573296b9.tar.gz u-boot-imx-ab209d510710e0059260e3ea17c11741573296b9.tar.bz2 |
Fix problems with I2C support for mpc5200
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/IceCube.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/configs/IceCube.h b/include/configs/IceCube.h index 9b3b4b4..49abede 100644 --- a/include/configs/IceCube.h +++ b/include/configs/IceCube.h @@ -107,13 +107,9 @@ * 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 /* @@ -122,7 +118,7 @@ #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 |