From: Tony Lindgren Date: Tue, 6 May 2014 00:27:36 +0000 (-0700) Subject: ARM: OMAP3: Fix voltage control for deeper idle states X-Git-Tag: omap-for-v3.16/pm-signed~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46f601cc2a0e8edc97953c0b5d2acb709be71ba;p=pandora-kernel.git ARM: OMAP3: Fix voltage control for deeper idle states Currently we're attempting to use a static value for the voltctrl register that only works for controlling the PMIC over I2C4. For using sys_off_mode signaling, we need to update update clksetup, voltsetup1, voltsetup2 and voltctrl registers dynamically depending on the idle state. So let's fix this by configuring things for I2C4 controlled idle and sys_off_mode pin controlled idle, and then write the configured register values depending on the idle state. This is similar what N900 kernel is doing too. Cc: Kevin Hilman Cc: Nishanth Menon Cc: Paul Walmsley Cc: Tero Kristo Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed