linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP4: I2C: Enable the wakeup in I2C_WE
@ 2011-07-29 11:48 Shubhrajyoti D
  2011-07-29 12:07 ` Felipe Balbi
  0 siblings, 1 reply; 7+ messages in thread
From: Shubhrajyoti D @ 2011-07-29 11:48 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, santosh.shilimkar-l0cyMroinI0,
	Shubhrajyoti D

Currently for OMAP4 the I2C_WE is not programmed.
This patch enables the programming for OMAP4.

Reported-by: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>
Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
---
TODO:
Currently all the wakeup sources are enabled.
There is scope of optimising the same. Will revisit it.
Rebased on Kevin's wip/i2c branch
Tested on OMAP4430.

 drivers/i2c/busses/i2c-omap.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index d05efe7..18cc0af 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -313,9 +313,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
 		 * REVISIT: Some wakeup sources might not be needed.
 		 */
 		dev->westate = OMAP_I2C_WE_ALL;
-		if (dev->rev < OMAP_I2C_REV_ON_3530_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);
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-29 14:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 11:48 [PATCH] OMAP4: I2C: Enable the wakeup in I2C_WE Shubhrajyoti D
2011-07-29 12:07 ` Felipe Balbi
     [not found]   ` <20110729120711.GL31013-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-07-29 12:28     ` "Andy Green (林安廸)"
     [not found]       ` <4E32A75C.5060400-/Zus8d0mwwtBDgjK7y7TUQ@public.gmane.org>
2011-07-29 12:37         ` Felipe Balbi
2011-07-29 13:41           ` Shubhrajyoti
     [not found]             ` <4E32B88E.6030508-l0cyMroinI0@public.gmane.org>
2011-07-29 14:03               ` Felipe Balbi
     [not found]             ` <CANQgH-YVzcvST=ofs4DYw5e4e_Qb1xO-=T46O6ioxMRDf2mpFg@mail.gmail.com>
     [not found]               ` <CANQgH-YVzcvST=ofs4DYw5e4e_Qb1xO-=T46O6ioxMRDf2mpFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-07-29 14:09                 ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).