Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 120bdaa4 authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Ben Dooks
Browse files

i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup



For the I2C module to be wakeup capable, programming I2C_WE register (which
was skipped for OMAP4430) is needed even on OMAP4.

This fixes i2c controller timeouts which were seen recently with the static
dependency being cleared between MPU and L4PER clockdomains.

Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
[ben-linux@fluff.org: re-flowed description]
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent fb62c00a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -378,9 +378,7 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
			 * REVISIT: Some wkup sources might not be needed.
			 */
			dev->westate = OMAP_I2C_WE_ALL;
			if (dev->rev < OMAP_I2C_REV_ON_4430)
				omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
								dev->westate);
			omap_i2c_write_reg(dev, OMAP_I2C_WE_REG, dev->westate);
		}
	}
	omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0);