aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/sleep.h
diff options
context:
space:
mode:
authorJoseph Lo <josephl@nvidia.com>2012-08-16 05:31:52 -0400
committerStephen Warren <swarren@nvidia.com>2012-09-13 13:41:06 -0400
commit453689e407f2b7c0a72a2e6fb2ef84c20475773b (patch)
tree83b532ff1b43e684ca3e92978c6d806bdc240f5c /arch/arm/mach-tegra/sleep.h
parent59b0f6825c15d24859e22b1024440ae2a094983e (diff)
ARM: tegra20: add CPU hotplug support
Hotplug function put CPU in offline or online mode at runtime. When the CPU been put into offline, it was been clock gated. The offline CPU can be power gated, when the remaining CPU goes into LP2. Based on the worked by: Colin Cross <ccross@android.com> Gary King <gking@nvidia.com> Signed-off-by: Joseph Lo <josephl@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/sleep.h')
-rw-r--r--arch/arm/mach-tegra/sleep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/sleep.h b/arch/arm/mach-tegra/sleep.h
index 0f047eb3ca2e..e25a7cd703d9 100644
--- a/arch/arm/mach-tegra/sleep.h
+++ b/arch/arm/mach-tegra/sleep.h
@@ -23,6 +23,8 @@
23 + IO_CPU_VIRT) 23 + IO_CPU_VIRT)
24#define TEGRA_FLOW_CTRL_VIRT (TEGRA_FLOW_CTRL_BASE - IO_PPSB_PHYS \ 24#define TEGRA_FLOW_CTRL_VIRT (TEGRA_FLOW_CTRL_BASE - IO_PPSB_PHYS \
25 + IO_PPSB_VIRT) 25 + IO_PPSB_VIRT)
26#define TEGRA_CLK_RESET_VIRT (TEGRA_CLK_RESET_BASE - IO_PPSB_PHYS \
27 + IO_PPSB_VIRT)
26 28
27#ifdef __ASSEMBLY__ 29#ifdef __ASSEMBLY__
28/* returns the offset of the flow controller halt register for a cpu */ 30/* returns the offset of the flow controller halt register for a cpu */
@@ -72,8 +74,10 @@
72#else 74#else
73 75
74#ifdef CONFIG_HOTPLUG_CPU 76#ifdef CONFIG_HOTPLUG_CPU
77void tegra20_hotplug_init(void);
75void tegra30_hotplug_init(void); 78void tegra30_hotplug_init(void);
76#else 79#else
80static inline void tegra20_hotplug_init(void) {}
77static inline void tegra30_hotplug_init(void) {} 81static inline void tegra30_hotplug_init(void) {}
78#endif 82#endif
79 83