From: Tim Harvey <tharvey@gateworks.com>
Date: Fri, 8 Aug 2014 05:35:44 +0000 (-0700)
Subject: imx: ventana: add appropriate delay following GSC i2c write
X-Git-Tag: v2025.01-rc5-pxa1908~14768^2~10
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/gitweb.css?a=commitdiff_plain;h=e5131d53bfd6d03a2a84f2c8ef0f5977c1b96359;p=u-boot.git

imx: ventana: add appropriate delay following GSC i2c write

The Gateworks System Controller EEPROM config is flash based. Add a delay
following writes to avoid errors on back-to-back writes.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---

diff --git a/board/gateworks/gw_ventana/gsc.c b/board/gateworks/gw_ventana/gsc.c
index 37966abba9..1cf38d4046 100644
--- a/board/gateworks/gw_ventana/gsc.c
+++ b/board/gateworks/gw_ventana/gsc.c
@@ -57,7 +57,7 @@ int gsc_i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len)
 			break;
 		mdelay(10);
 	}
-	mdelay(1);
+	mdelay(100);
 	return ret;
 }