diff options
author | Heiko Schocher <hs@denx.de> | 2008-10-15 09:39:08 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:02 +0200 |
commit | c24853644ddd2dd2e4246b5854a93e6254a14092 (patch) | |
tree | 4c3d35cd9f55e725fd1bd3c0c6b792cc74df403b /include | |
parent | 4ca107effebfbabac1057c39632105dacef95957 (diff) | |
download | u-boot-imx-c24853644ddd2dd2e4246b5854a93e6254a14092.zip u-boot-imx-c24853644ddd2dd2e4246b5854a93e6254a14092.tar.gz u-boot-imx-c24853644ddd2dd2e4246b5854a93e6254a14092.tar.bz2 |
mgcoge, mgsuvd: add board specific I2C deblocking mechanism.
As documented in doc/I2C_Edge_Conditions, adding a
board specific deblocking mechanism via CFG_I2C_INIT_BOARD
for the mgcoge and mgsuvd board.
This code was originally written by Keymile in association
with Anatech and Atmel in 1998. The Code toggels the SCL
until the SCA line goes to HIGH (max. 16 times).
And after this, a start condition is sent.
This is another approach to deblock the I2C Bus. The
soft I2C driver actually sends 9 clocks with SDA High,
and then a stop at the end, to deblock the I2C Bus.
Maybe we should use the approach from Keymile as
the new standard?
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mgcoge.h | 1 | ||||
-rw-r--r-- | include/configs/mgsuvd.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h index bfbbd45..398e092 100644 --- a/include/configs/mgcoge.h +++ b/include/configs/mgcoge.h @@ -202,6 +202,7 @@ #define CONFIG_I2C_MULTI_BUS 1 #define CONFIG_I2C_CMD_TREE 1 #define CFG_MAX_I2C_BUS 2 +#define CFG_I2C_INIT_BOARD 1 /* EEprom support */ #define CFG_I2C_EEPROM_ADDR_LEN 1 diff --git a/include/configs/mgsuvd.h b/include/configs/mgsuvd.h index c569c81..2048575 100644 --- a/include/configs/mgsuvd.h +++ b/include/configs/mgsuvd.h @@ -373,6 +373,7 @@ #define CONFIG_I2C_MULTI_BUS 1 #define CONFIG_I2C_CMD_TREE 1 #define CFG_MAX_I2C_BUS 2 +#define CFG_I2C_INIT_BOARD 1 /* EEprom support */ #define CFG_I2C_EEPROM_ADDR_LEN 1 |