summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2015-10-28 11:46:26 +0100
committerTom Rini <trini@konsulko.com>2015-11-12 15:59:03 -0500
commit2302fd32a5c2015be204e71737481322fe7b5f3a (patch)
treea3a0918b327cedf9b2817b94fc77e3f6797ccca0
parent0caad193cdb051b67b01d1f87df01e3c74acdb04 (diff)
board: gdsys: Increase DP501 I2C retry interval
With Club 3D dual link adapter there are AUX-channel timeouts when EDID is read. Increasing retry interval time to max (400us) fixes this. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Reviewed-by: Heiko Schocher <hs@denx.de>
-rw-r--r--board/gdsys/common/dp501.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/gdsys/common/dp501.c b/board/gdsys/common/dp501.c
index baace38ad6..0389fd1750 100644
--- a/board/gdsys/common/dp501.c
+++ b/board/gdsys/common/dp501.c
@@ -88,7 +88,8 @@ void dp501_powerup(u8 addr)
dp501_setbits(addr, 0x78, 0x03); /* clear all interrupt */
i2c_reg_write(addr, 0x75, 0xf8); /* aux channel reset */
i2c_reg_write(addr, 0x75, 0x00); /* clear aux channel reset */
- i2c_reg_write(addr, 0x87, 0x70); /* set retry counter as 7 */
+ i2c_reg_write(addr, 0x87, 0x7f); /* set retry counter as 7
+ retry interval 400us */
if (dp501_detect_cable_adapter(addr)) {
printf("DVI/HDMI cable adapter detected\n");