regulator: tps6586x: add PFM/PWM options on SMs supply
authorXin Xie <xxie@nvidia.com>
Sat, 12 Mar 2011 03:04:15 +0000 (19:04 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 21:13:56 +0000 (14:13 -0700)
commitb61f91e06c0064448f5e3f015cf1a9310a55eec2
treef695d974ed504a779e8898604380151d88baf244
parentd53416540d5e97a2301a162dda8cae0e1477c066
regulator: tps6586x: add PFM/PWM options on SMs supply

TPS6586x SM0, SM1 and SM2 port have 2 power switching modes:
 - PWM only, or
 - PMW-PFM auto mode

Some of TPS6586x have voltage spike in PFM-to-FWM transition can lockup
the CPU if choose PWM-PFM auto mode.

This patch enables such mode selection on SMs ports from the board level
power configuration file.

BUG 796364

Original-Change-Id: I7015798151d6753ff5dcc329703338fde105e2b0
Reviewed-on: http://git-master/r/22701
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>

Rebase-Id: R2f74b345bc3ea3adc22adcab40ee407c3e65cae9
drivers/regulator/tps6586x-regulator.c