diff options
author | Shaveta Leekha <shaveta@freescale.com> | 2014-11-03 10:43:14 +0530 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-11-10 06:47:36 +0100 |
commit | 6dd38cc35245db624443ee596eb78853fa9cca7a (patch) | |
tree | f1bf2767b96ccc8906c20d3352f2788210a0f2bb /drivers | |
parent | b97cd6814ec08be56225975a050ee486bfa7c13a (diff) | |
download | u-boot-imx-6dd38cc35245db624443ee596eb78853fa9cca7a.zip u-boot-imx-6dd38cc35245db624443ee596eb78853fa9cca7a.tar.gz u-boot-imx-6dd38cc35245db624443ee596eb78853fa9cca7a.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/fsl_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 811033b..7bb1702 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -38,7 +38,7 @@ * generic value. */ #ifndef CONFIG_I2C_TIMEOUT -#define CONFIG_I2C_TIMEOUT 10000 +#define CONFIG_I2C_TIMEOUT 100000 #endif #define I2C_READ_BIT 1 |