summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/flowctrl.c
diff options
context:
space:
mode:
authorJoseph Lo <josephl@nvidia.com>2013-07-03 09:50:43 (GMT)
committerStephen Warren <swarren@nvidia.com>2013-07-19 16:08:08 (GMT)
commitdd6fe9a927eaaa98f70b44464a810e6e4d33318c (patch)
tree174f2a7b9aabb626cc036a10b98f38e484a5b3a8 /arch/arm/mach-tegra/flowctrl.c
parentb573ad9f19ad56938a66c95fbc5122b77951cd5d (diff)
downloadlinux-dd6fe9a927eaaa98f70b44464a810e6e4d33318c.tar.xz
ARM: tegra: flowctrl: add support for cpu_suspend_enter/exit
The flow controller can help CPU to go into suspend mode (powered-down state). When CPU goes 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. For Tegra114, the setting is compatible with Tegra30. Signed-off-by: Joseph Lo <josephl@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/flowctrl.c')
-rw-r--r--arch/arm/mach-tegra/flowctrl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/flowctrl.c b/arch/arm/mach-tegra/flowctrl.c
index b477ef3..5348543 100644
--- a/arch/arm/mach-tegra/flowctrl.c
+++ b/arch/arm/mach-tegra/flowctrl.c
@@ -86,6 +86,7 @@ void flowctrl_cpu_suspend_enter(unsigned int cpuid)
reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid;
break;
case TEGRA30:
+ case TEGRA114:
/* clear wfe bitmap */
reg &= ~TEGRA30_FLOW_CTRL_CSR_WFE_BITMAP;
/* clear wfi bitmap */
@@ -123,6 +124,7 @@ void flowctrl_cpu_suspend_exit(unsigned int cpuid)
reg &= ~TEGRA20_FLOW_CTRL_CSR_WFI_BITMAP;
break;
case TEGRA30:
+ case TEGRA114:
/* clear wfe bitmap */
reg &= ~TEGRA30_FLOW_CTRL_CSR_WFE_BITMAP;
/* clear wfi bitmap */