Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272761
b: refs/heads/master
c: 3664942
h: refs/heads/master
i:
  272759: a3105a9
v: v3
  • Loading branch information
Nishanth Menon authored and Kevin Hilman committed Sep 15, 2011
1 parent becc4fd commit 4dfa937
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 58e241f7be8dfbb19fa8f5bf8b2e56bb6d655752
refs/heads/master: 366494250b60af14fbab4d94d6bb1d1b6d17f10b
7 changes: 6 additions & 1 deletion trunk/arch/arm/mach-omap2/omap_twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,13 @@ static u8 twl6030_uv_to_vsel(unsigned long uv)
* hardcoding only for 1.35 V which is used for 1GH OPP for
* OMAP4430.
*/
if (uv == 1350000)
if (uv > twl6030_vsel_to_uv(0x39)) {
if (uv == 1350000)
return 0x3A;
pr_err("%s:OUT OF RANGE! non mapped vsel for %ld Vs max %ld\n",
__func__, uv, twl6030_vsel_to_uv(0x39));
return 0x3A;
}

if (smps_offset & 0x8)
return DIV_ROUND_UP(uv - 709000, 12660) + 1;
Expand Down

0 comments on commit 4dfa937

Please sign in to comment.