Commit 6dd38cc35245db624443ee596eb78853fa9cca7a

Authored by Shaveta Leekha
Committed by Heiko Schocher
1 parent b97cd6814e

drivers/i2c/fsl_i2c: Change CONFIG_I2C_TIMEOUT to 100ms

Some slow I2C devices like Power Monitor(ZM7304) at times
do not work well with low timeout value, so I2C bus get stuck
during read cycle with this device, changing it to 100ms from
10ms works fine

A lot of other i2c drivers like mxc and i2c drivers of BOOTROM
also use relax timeouts to give sufficient ticks to work well
with slower devices

Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/i2c/fsl_i2c.c
... ... @@ -38,7 +38,7 @@
38 38 * generic value.
39 39 */
40 40 #ifndef CONFIG_I2C_TIMEOUT
41   -#define CONFIG_I2C_TIMEOUT 10000
  41 +#define CONFIG_I2C_TIMEOUT 100000
42 42 #endif
43 43  
44 44 #define I2C_READ_BIT 1