summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/sleep.h
diff options
context:
space:
mode:
authorBo Yan <byan@nvidia.com>2012-10-16 19:10:03 -0700
committerSimone Willett <swillett@nvidia.com>2012-10-24 17:32:07 -0700
commitdb12bae2c1be7726deafd2c54b23d792e8e17dd6 (patch)
tree5a0f1b468af302d625fe0651fedbde288c030b5e /arch/arm/mach-tegra/sleep.h
parent814b8b4f056548e8dc9600d1d377563ee6eb5518 (diff)
ARM: tegra11x: residency time for different LP2 mode
Select CPU partition power gating only, non-CPU power gating, or rail gating based on the required minimum residency and requested sleep length. The minimum residency for non-cpu power gating and rail-gating are arbitrarily set in this change, they have to be characterized. The minimum residency for non-cpu power gating shall always be less than the minimu residency for rail gating. Also fix a bug that prevents rail-gating Change-Id: Icc646061f0fb47662fa74e77c6ae6b5d5da1444a Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/146640 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/sleep.h')
-rw-r--r--arch/arm/mach-tegra/sleep.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/sleep.h b/arch/arm/mach-tegra/sleep.h
index e01f9183d4c8..57dd44f5777c 100644
--- a/arch/arm/mach-tegra/sleep.h
+++ b/arch/arm/mach-tegra/sleep.h
@@ -36,8 +36,13 @@
#define TEGRA_POWER_LP1_AUDIO (1 << 25) /* do not turn off pll-p in LP1 */
#ifdef CONFIG_ARCH_TEGRA_HAS_SYMMETRIC_CPU_PWR_GATE
-#define TEGRA_POWER_CLUSTER_PART_CRAIL (1 << 24) /* Power gate CRAIL partition */
-#define TEGRA_POWER_CLUSTER_PART_NONCPU (1 << 25) /* Power gate CxNC partition */
+
+/* Power gate CRAIL partition */
+#define TEGRA_POWER_CLUSTER_PART_CRAIL (1 << 25)
+
+/* Power gate CxNC partition */
+#define TEGRA_POWER_CLUSTER_PART_NONCPU (1 << 24)
+
#define TEGRA_POWER_CLUSTER_PART_MASK (TEGRA_POWER_CLUSTER_PART_CRAIL | \
TEGRA_POWER_CLUSTER_PART_NONCPU)
#define TEGRA_POWER_CLUSTER_PART_DEFAULT TEGRA_POWER_CLUSTER_PART_CRAIL