diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-07-16 18:34:05 -0700 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-07-16 18:34:05 -0700 |
| commit | 2c25de1ed5c6f8f6bba3b5ec506f430d8a883a83 (patch) | |
| tree | 3314877380629570b379bc50eab3ffed35ca9c6e | |
| parent | e71bec1d7ee5764ae0173d7a4273f3b6d5246d3f (diff) | |
| download | olio-uboot-2014.01-2c25de1ed5c6f8f6bba3b5ec506f430d8a883a83.tar.xz olio-uboot-2014.01-2c25de1ed5c6f8f6bba3b5ec506f430d8a883a83.zip | |
Fix for tps65910 errata, fixes issue with early enabling of voltages.H1-2014.01
Change-Id: Ib32c79ffce144f6bb817d6f3bd885b4dff9013fb
| -rw-r--r-- | board/olio/h1/h1.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/board/olio/h1/h1.c b/board/olio/h1/h1.c index 3c039a65b..e69797638 100644 --- a/board/olio/h1/h1.c +++ b/board/olio/h1/h1.c @@ -109,7 +109,16 @@ static int tps65910_voltages_init(void) struct vsel_map_t *p = tps65910_volt; int i, ret; - if (i2c_probe(TPS65910_CTRL_I2C_ADDR)) + /* + * dummy i2c bus access is required to workaround tps65910 errata + * "Glitch on SDA-SCL not managed correctly by the I2C IP" + */ + i = 2; + do + ret = i2c_probe(TPS65910_CTRL_I2C_ADDR); + while (ret && --i); + + if (ret) return -1; /* Tell the TPS65910 to use i2c */ |