summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/flowctrl.h
diff options
context:
space:
mode:
authorJoseph Lo <josephl@nvidia.com>2013-01-15 22:11:01 +0000
committerStephen Warren <swarren@nvidia.com>2013-01-28 11:20:38 -0700
commitafec581c4b53e03a97d9ef1b7a746a67967573cf (patch)
tree148b93a680ee69542ac3cb8dfc7ff77a64cea6ea /arch/arm/mach-tegra/flowctrl.h
parent4a2e32794e71db679b91df1d9c98921b2e32ec4e (diff)
downloadlinux-stable-afec581c4b53e03a97d9ef1b7a746a67967573cf.tar.gz
linux-stable-afec581c4b53e03a97d9ef1b7a746a67967573cf.tar.bz2
linux-stable-afec581c4b53e03a97d9ef1b7a746a67967573cf.zip
ARM: tegra20: flowctrl: add support for cpu_suspend_enter/exit
The flow controller can help CPU to go into suspend mode (powered-down state). When CPU go into powered-down state, it needs some careful settings before getting into and after leaving. The enter and exit functions do that by configuring appropriate mode for flow controller. Signed-off-by: Joseph Lo <josephl@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/flowctrl.h')
-rw-r--r--arch/arm/mach-tegra/flowctrl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/flowctrl.h b/arch/arm/mach-tegra/flowctrl.h
index 0798dec1832d..67eab56699bd 100644
--- a/arch/arm/mach-tegra/flowctrl.h
+++ b/arch/arm/mach-tegra/flowctrl.h
@@ -34,6 +34,10 @@
#define FLOW_CTRL_HALT_CPU1_EVENTS 0x14
#define FLOW_CTRL_CPU1_CSR 0x18
+#define TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 (1 << 4)
+#define TEGRA20_FLOW_CTRL_CSR_WFE_BITMAP (3 << 4)
+#define TEGRA20_FLOW_CTRL_CSR_WFI_BITMAP 0
+
#define TEGRA30_FLOW_CTRL_CSR_WFI_CPU0 (1 << 8)
#define TEGRA30_FLOW_CTRL_CSR_WFE_BITMAP (0xF << 4)
#define TEGRA30_FLOW_CTRL_CSR_WFI_BITMAP (0xF << 8)