]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: add appropriate delay following GSC i2c write
authorTim Harvey <tharvey@gateworks.com>
Fri, 8 Aug 2014 05:35:44 +0000 (22:35 -0700)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Aug 2014 10:53:50 +0000 (12:53 +0200)
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>
board/gateworks/gw_ventana/gsc.c

index 37966abba99acf741e5a76bb917738955b393ffd..1cf38d4046a7a2ca789e20040662601dd2fdaef7 100644 (file)
@@ -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;
 }