From 2c25de1ed5c6f8f6bba3b5ec506f430d8a883a83 Mon Sep 17 00:00:00 2001 From: mattis fjallstrom Date: Thu, 16 Jul 2015 18:34:05 -0700 Subject: Fix for tps65910 errata, fixes issue with early enabling of voltages. Change-Id: Ib32c79ffce144f6bb817d6f3bd885b4dff9013fb --- board/olio/h1/h1.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3-70-g09d2