msm: board-8930: Configure PM8038 SMPS regulators to use auto mode and LPM
Change the RPM regulator configuration data for PM8038 SMPS
regulators on MSM8930 so that active set RPM requests are made
with force mode = auto instead of force mode = none. Also change
force mode to LPM for sleep set requests.
Auto mode allows a regulator to switch automatically between
HPM and LPM in hardware based on real-time current load. Forced
LPM is utilized in the sleep set because it allows for
additional power savings beyond auto mode.
Change-Id: I02ece53063d50d80ad62f33d62899ef631d731aa
Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8930-regulator.c b/arch/arm/mach-msm/board-8930-regulator.c
index 4478edd..8584f7f 100644
--- a/arch/arm/mach-msm/board-8930-regulator.c
+++ b/arch/arm/mach-msm/board-8930-regulator.c
@@ -456,10 +456,10 @@
static struct rpm_regulator_init_data
msm8930_rpm_regulator_init_data[] __devinitdata = {
/* ID a_on pd ss min_uV max_uV supply sys_uA freq fm ss_fm */
- RPM_SMPS(S1, 0, 1, 1, 500000, 1150000, NULL, 100000, 4p80, NONE, NONE),
- RPM_SMPS(S2, 1, 1, 0, 1400000, 1400000, NULL, 100000, 1p60, NONE, NONE),
- RPM_SMPS(S3, 0, 1, 0, 1150000, 1150000, NULL, 100000, 3p20, NONE, NONE),
- RPM_SMPS(S4, 1, 1, 0, 2200000, 2200000, NULL, 100000, 1p60, NONE, NONE),
+ RPM_SMPS(S1, 0, 1, 1, 500000, 1150000, NULL, 100000, 4p80, AUTO, LPM),
+ RPM_SMPS(S2, 1, 1, 1, 1400000, 1400000, NULL, 100000, 1p60, AUTO, LPM),
+ RPM_SMPS(S3, 0, 1, 1, 1150000, 1150000, NULL, 100000, 3p20, AUTO, LPM),
+ RPM_SMPS(S4, 1, 1, 1, 2200000, 2200000, NULL, 100000, 1p60, AUTO, LPM),
/* ID a_on pd ss min_uV max_uV supply sys_uA init_ip */
RPM_LDO(L1, 0, 1, 0, 1300000, 1300000, "8038_s2", 0, 0),