aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/vc.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-07-18 18:31:00 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 15:08:58 -0400
commitd7b0de2b46803062148345ae6a976c1e44a457b6 (patch)
tree8ba8d6a5623883caa389c05ec80a54992c6e164b /arch/arm/mach-omap2/vc.c
parent8abc0b58fdb89124d8278f110f523b27c666d36c (diff)
OMAP3+: VC: use last nominal voltage setting to get current_vsel
Instead of reading current vsel value from the VP's voltage register, just use current nominal voltage translated into vsel via the PMIC. Doing this allows VC bypass scaling to work even without a VP configured. Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vc.c')
-rw-r--r--arch/arm/mach-omap2/vc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c
index f53d1f5acce1..21ffde86ad83 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -138,7 +138,7 @@ int omap_vc_pre_scale(struct voltagedomain *voltdm,
138 volt_data = NULL; 138 volt_data = NULL;
139 139
140 *target_vsel = voltdm->pmic->uv_to_vsel(target_volt); 140 *target_vsel = voltdm->pmic->uv_to_vsel(target_volt);
141 *current_vsel = voltdm->read(vdd->vp_data->voltage); 141 *current_vsel = voltdm->pmic->uv_to_vsel(vdd->curr_volt);
142 142
143 /* Setting the ON voltage to the new target voltage */ 143 /* Setting the ON voltage to the new target voltage */
144 vc_cmdval = voltdm->read(vc->cmdval_reg); 144 vc_cmdval = voltdm->read(vc->cmdval_reg);