diff options
author | Joseph Lo <josephl@nvidia.com> | 2013-01-16 02:11:01 +0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-01-28 22:20:38 +0400 |
commit | afec581c4b53e03a97d9ef1b7a746a67967573cf (patch) | |
tree | 148b93a680ee69542ac3cb8dfc7ff77a64cea6ea /arch/arm/mach-tegra/flowctrl.h | |
parent | 4a2e32794e71db679b91df1d9c98921b2e32ec4e (diff) | |
download | linux-afec581c4b53e03a97d9ef1b7a746a67967573cf.tar.xz |
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.h | 4 |
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) |