From 6031a0cd1a2391a30e30a5edbcaccf5a1868969c Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Thu, 21 Jul 2011 16:06:08 -0700 Subject: ARM: tegra3: power: Add LP2 power mode support for CPU 0 Add support for forced Tegra3 LP2 low power mode on the boot processor (CPU 0) via the cluster control interface when all others are offline. Switching to the LP CPU mode is also enabled with this change. LP2 in idle and LP2 mode on the secondary processors is not yet supported. Change-Id: Icb898729f093be5e006c413f701532dd45228687 Signed-off-by: Scott Williams Signed-off-by: Dan Willemsen Rebase-Id: Rd5d8c2b0addfd6853033670b992ae082e4a0d9c8 --- arch/arm/mach-tegra/sleep.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/arm/mach-tegra/sleep.h') diff --git a/arch/arm/mach-tegra/sleep.h b/arch/arm/mach-tegra/sleep.h index 5f418255de84..3caefe15f021 100644 --- a/arch/arm/mach-tegra/sleep.h +++ b/arch/arm/mach-tegra/sleep.h @@ -108,6 +108,9 @@ void tegra2_sleep_core(unsigned long v2p); void tegra2_hotplug_shutdown(void); void tegra2_sleep_wfi(unsigned long v2p); #else +extern void tegra3_iram_start; +extern void tegra3_iram_end; +void tegra3_sleep_core(unsigned long v2p); void tegra3_hotplug_shutdown(void); #endif @@ -115,6 +118,8 @@ static inline void *tegra_iram_start(void) { #ifdef CONFIG_ARCH_TEGRA_2x_SOC return &tegra2_iram_start; +#else + return &tegra3_iram_start; #endif } @@ -122,6 +127,8 @@ static inline void *tegra_iram_end(void) { #ifdef CONFIG_ARCH_TEGRA_2x_SOC return &tegra2_iram_end; +#else + return &tegra3_iram_end; #endif } @@ -129,6 +136,9 @@ static inline void tegra_sleep_core(unsigned long v2p) { #ifdef CONFIG_ARCH_TEGRA_2x_SOC tegra2_sleep_core(v2p); +#else + /* tegra3_sleep_core(v2p); !!!FIXME!!! not supported yet */ + BUG(); #endif } -- cgit v1.2.3