summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/sleep.h
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2012-02-16 12:08:00 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:10:09 -0700
commit20838e8bde9b1a90075ad222313aac3f23951709 (patch)
tree794f305deb460776b1f917fb3a2bf69a499540ef /arch/arm/mach-tegra/sleep.h
parent140e0502a9d1bd03c23ccc20c5dbca362a372624 (diff)
ARM: tegra: power: Add cluster switch power_gate sysfs node
Add power gating control node to the cluster switch sysfs interface for SoCs with symmetric CPU power gating. This change merely adds the control interface. Usage of the power gate control information will come in subsequent commits. Change-Id: I291267e0fa34bdcf1947bf7eb0816c4e5fd85b95 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/84362 Rebase-Id: Re09c48bb32a72efc78b7f304265d4722a9ed23b4
Diffstat (limited to 'arch/arm/mach-tegra/sleep.h')
-rw-r--r--arch/arm/mach-tegra/sleep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/sleep.h b/arch/arm/mach-tegra/sleep.h
index 30ec00586aaf..7cedecfd9a6e 100644
--- a/arch/arm/mach-tegra/sleep.h
+++ b/arch/arm/mach-tegra/sleep.h
@@ -28,6 +28,14 @@
#endif
#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 */
+#define TEGRA_POWER_CLUSTER_PART_MASK (TEGRA_POWER_CLUSTER_PART_CRAIL | \
+ TEGRA_POWER_CLUSTER_PART_NONCPU)
+#endif
+
#define TEGRA_POWER_SDRAM_SELFREFRESH (1 << 26) /* SDRAM is in self-refresh */
#define TEGRA_POWER_HOTPLUG_SHUTDOWN (1 << 27) /* Hotplug shutdown */
#define TEGRA_POWER_CLUSTER_G (1 << 28) /* G CPU */