regulator: tps80031: Proper configuration for PREQ1 control
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 13 Oct 2011 07:04:58 +0000 (12:04 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:49:28 +0000 (21:49 -0800)
commit6980642e8cd2357a4d62eefa4ca9c3b58947ba09
treea287c29406dbbad2fca971c00657778cd925a99c
parentfa36ff379b8283fce834329fd707ca70a8afe306
regulator: tps80031: Proper configuration for PREQ1 control

When any rail is configured such that it can be enable by PREQ1
then only control the sleep mode of rails through TRANS register,
not the STATE register.
PREQ1 control the rail to switch from active to sleep and
sleep to active mode.

Reviewed-on: http://git-master/r/58278
(cherry picked from commit 6a8db3200c3119673b85769b1caa56422a22b4f9)

Change-Id: I9763a4d283f0171eb9b7755d44ca3b9059755033
Reviewed-on: http://git-master/r/59289
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R25d191b2429a5f60e77d70aed1eefecaa3b75ba3
drivers/regulator/tps80031-regulator.c