summaryrefslogtreecommitdiffstats
path: root/include/configs/mgcoge.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2008-10-15 09:39:08 +0200
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:02 +0200
commitc24853644ddd2dd2e4246b5854a93e6254a14092 (patch)
tree4c3d35cd9f55e725fd1bd3c0c6b792cc74df403b /include/configs/mgcoge.h
parent4ca107effebfbabac1057c39632105dacef95957 (diff)
downloadbootable_bootloader_goldelico_gta04-c24853644ddd2dd2e4246b5854a93e6254a14092.zip
bootable_bootloader_goldelico_gta04-c24853644ddd2dd2e4246b5854a93e6254a14092.tar.gz
bootable_bootloader_goldelico_gta04-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/configs/mgcoge.h')
-rw-r--r--include/configs/mgcoge.h1
1 files changed, 1 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