summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_dvfs.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2012-01-07 20:56:21 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-22 23:50:07 -0700
commit3db23ff6572ee7fc97408feb0717303fcf9f2ad9 (patch)
treeb0961e199a0dbba10decded1010e165801439dcd /arch/arm/mach-tegra/tegra3_dvfs.c
parent87851ffa64da084d0a68ce8c231c03c242872b3b (diff)
ARM: tegra: dvfs: Update Tegra3 vdd_core floor
To properly account for voltage steps with 12.5mV resolution, moved up by 25mV all thresholds in vdd_core floor calculation function, and replaced "less than or equal" comparison with "less than". Change-Id: I869ecabf4e25a268fbe279e54026d4fd1bf25db6 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/73903 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-on: http://git-master/r/74558 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Rebase-Id: R7919f69e6bc7e0d6eb0483368b8207badd1b01f3
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_dvfs.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_dvfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/tegra3_dvfs.c b/arch/arm/mach-tegra/tegra3_dvfs.c
index 82bee5e3bd95..f4f72620dfcb 100644
--- a/arch/arm/mach-tegra/tegra3_dvfs.c
+++ b/arch/arm/mach-tegra/tegra3_dvfs.c
@@ -69,14 +69,14 @@ static struct dvfs_rail *tegra3_dvfs_rails[] = {
static int tegra3_get_core_floor_mv(int cpu_mv)
{
- if (cpu_mv <= 825)
+ if (cpu_mv < 850)
return 1000;
- if (cpu_mv <= 975)
+ if (cpu_mv < 1000)
return 1100;
if ((tegra_cpu_speedo_id() < 2) ||
(tegra_cpu_speedo_id() == 4))
return 1200;
- if (cpu_mv <= 1075)
+ if (cpu_mv < 1100)
return 1200;
if (cpu_mv <= 1250)
return 1300;