Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272749
b: refs/heads/master
c: bea30ed
h: refs/heads/master
i:
  272747: c70c95c
v: v3
  • Loading branch information
Todd Poynor authored and Kevin Hilman committed Sep 15, 2011
1 parent 7f8be76 commit c550343
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f01565a353e06f1f1d7757b212c51e61c6fea58
refs/heads/master: bea30ed65fb2432097f362ce17042e22febcb616
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-omap2/vp.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ unsigned long omap_vp_get_curr_volt(struct voltagedomain *voltdm)
return 0;
}

curr_vsel = voltdm->read(vp->voltage);
curr_vsel = (voltdm->read(vp->voltage) & vp->common->vpvoltage_mask)
>> __ffs(vp->common->vpvoltage_mask);

if (!voltdm->pmic || !voltdm->pmic->vsel_to_uv) {
pr_warning("%s: PMIC function to convert vsel to voltage"
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-omap2/vp.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ struct omap_vp_ops {
* @vlimitto_vddmin_shift: VDDMIN field shift in PRM_VP*_VLIMITTO reg
* @vlimitto_vddmax_shift: VDDMAX field shift in PRM_VP*_VLIMITTO reg
* @vlimitto_timeout_shift: TIMEOUT field shift in PRM_VP*_VLIMITTO reg
* @vpvoltage_mask: VPVOLTAGE field mask in PRM_VP*_VOLTAGE reg
*/
struct omap_vp_common {
u32 vpconfig_erroroffset_mask;
Expand All @@ -79,6 +80,7 @@ struct omap_vp_common {
u8 vlimitto_vddmin_shift;
u8 vlimitto_vddmax_shift;
u8 vlimitto_timeout_shift;
u8 vpvoltage_mask;

const struct omap_vp_ops *ops;
};
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-omap2/vp3xxx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ static const struct omap_vp_common omap3_vp_common = {
.vlimitto_vddmin_shift = OMAP3430_VDDMIN_SHIFT,
.vlimitto_vddmax_shift = OMAP3430_VDDMAX_SHIFT,
.vlimitto_timeout_shift = OMAP3430_TIMEOUT_SHIFT,
.vpvoltage_mask = OMAP3430_VPVOLTAGE_MASK,

.ops = &omap3_vp_ops,
};

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-omap2/vp44xx_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static const struct omap_vp_common omap4_vp_common = {
.vlimitto_vddmin_shift = OMAP4430_VDDMIN_SHIFT,
.vlimitto_vddmax_shift = OMAP4430_VDDMAX_SHIFT,
.vlimitto_timeout_shift = OMAP4430_TIMEOUT_SHIFT,
.vpvoltage_mask = OMAP4430_VPVOLTAGE_MASK,
.ops = &omap4_vp_ops,
};

Expand Down

0 comments on commit c550343

Please sign in to comment.