]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c-omap: reprogram OCP_SYSCONFIG register after reset
authorPaul Walmsley <paul@pwsan.com>
Fri, 21 Nov 2008 21:39:55 +0000 (13:39 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 21:39:55 +0000 (13:39 -0800)
commitfdd07fe6f6fe54250d8b1126b42ebdc72d938f05
tree9f52a8091681f4c90eac953d5daacc378e6b2844
parent9c76b878eb3f837ff98b37aa254e6cc7942e946b
i2c-omap: reprogram OCP_SYSCONFIG register after reset

The I2C controller clears its OCP_SYSCONFIG register after an OCP soft reset.
Reprogram OCP_SYSCONFIG for maximum power savings on rev3.6 controllers
and beyond.  On 2430, this involves setting the module AUTOIDLE bit.
On 3430, this includes module AUTOIDLE, wakeup enable, slave smart-idle,
and considers only the module functional clock state for idle-ack.

Boot-tested on 2430SDP and 3430SDP.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c