summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/dvfs.h
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2013-08-09 13:38:28 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:40:24 -0700
commit0174a61967164bb3974d3999446a2306ecb890dd (patch)
tree6bf3b4a21e0bd0a96f2417bd8e5f3addf4931fc2 /arch/arm/mach-tegra/dvfs.h
parent817a08ea50f9041d9698af8c914033837feb5b74 (diff)
ARM: tegra: dvfs: Don't power-down cluster if dfll bypass
If dfll is bypassed in legacy dvfs mode, CPU voltage during cluster power-down entry/exit is at fixed level set by regulator h/w. This level may not be high enough for current CPU rate. Hence, disabled CPU G cluster power-down when dfll bypass is used. Bug 1310396 Change-Id: I6fc276f94008506f38adbb4b6a8fdc92d4c6ee2e Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/260228 GVS: Gerrit_Virtual_Submit Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/dvfs.h')
-rw-r--r--arch/arm/mach-tegra/dvfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/dvfs.h b/arch/arm/mach-tegra/dvfs.h
index d05e0e70ded9..6386cf5567a8 100644
--- a/arch/arm/mach-tegra/dvfs.h
+++ b/arch/arm/mach-tegra/dvfs.h
@@ -344,4 +344,13 @@ static inline int tegra_dvfs_rail_get_override_floor(struct dvfs_rail *rail)
return -ENOENT;
}
+static inline bool tegra_dvfs_is_dfll_bypass(void)
+{
+#ifdef CONFIG_REGULATOR_TEGRA_DFLL_BYPASS
+ return true;
+#else
+ return false;
+#endif
+}
+
#endif