summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/dvfs.c
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2014-11-06 16:34:09 +0530
committerWinnie Hsu <whsu@nvidia.com>2014-11-21 13:46:32 -0800
commite9b32d4342a9ee9308729ae0c725d421869a0538 (patch)
treeb75923e1184e8620e4a7e8650b306fb96d606d9c /arch/arm/mach-tegra/dvfs.c
parent2c1ad0be0a4ef9a83f8fbdbb19dbc72cb83f7420 (diff)
arm: tegra12: add support for CD575M 24x7 Chip
Added DVFS support for CD575M Always on behaviour. With this personality configuration for the chip,the lifetime of the chip increases to 5 Yrs Operating Temp : -25 to 105 degC CPU DVFS: Max Freq 1938Mhz. Max Voltage 1.12V SOC DVFS: Max Voltage0 1.01V EMC dvfs max freq 792Mhz GPU DVFS: Max Freq 804Mhz and Ma Voltage 1.09V Bug 1563635 Change-Id: If7fec38b83ae4de8c5435006207fa3cf717384c0 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/594855 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/dvfs.c')
-rw-r--r--arch/arm/mach-tegra/dvfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/dvfs.c b/arch/arm/mach-tegra/dvfs.c
index 06596c51ee1a..429385118b64 100644
--- a/arch/arm/mach-tegra/dvfs.c
+++ b/arch/arm/mach-tegra/dvfs.c
@@ -1146,7 +1146,8 @@ int __init tegra_enable_dvfs_on_clk(struct clk *c, struct dvfs *d)
}
for (i = 0; i < MAX_DVFS_FREQS; i++) {
- if (d->millivolts[i] == 0)
+ if (d->millivolts[i] == 0 ||
+ d->millivolts[i] > d->max_millivolts)
break;
d->freqs[i] *= d->freqs_mult;