Skip to content

Commit

Permalink
OMAP3+: VC: use last nominal voltage setting to get current_vsel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman committed Sep 15, 2011
1 parent 8abc0b5 commit d7b0de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/vc.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int omap_vc_pre_scale(struct voltagedomain *voltdm,
volt_data = NULL;

*target_vsel = voltdm->pmic->uv_to_vsel(target_volt);
*current_vsel = voltdm->read(vdd->vp_data->voltage);
*current_vsel = voltdm->pmic->uv_to_vsel(vdd->curr_volt);

/* Setting the ON voltage to the new target voltage */
vc_cmdval = voltdm->read(vc->cmdval_reg);
Expand Down

0 comments on commit d7b0de2

Please sign in to comment.