]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
OMAP2/3 I2C: reprogram OCP_SYSCONFIG register after reset
authorPaul Walmsley <paul@pwsan.com>
Tue, 14 Oct 2008 12:19:48 +0000 (06:19 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 21:32:46 +0000 (13:32 -0800)
commit2090ad6052d0241bce169c0448a23914f6da25b0
treeb4a285b49aa35845a33da1696021191f4c36cc40
parent7d5c6f2a72e8131670b48c2c5dc04097b9ef6916
OMAP2/3 I2C: 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