summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pm.h
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-07-25 14:46:05 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:54 -0800
commitf81cfd3935d44d7a13b9aa6d24851389e663660f (patch)
treedd716c807ad0f335cc2af8579ea8f1659546ac1f /arch/arm/mach-tegra/pm.h
parent57110c69e55510ff6157511080f4364bbb88a509 (diff)
ARM: tegra3: Add LP2 Timers
Change-Id: I121c8aff9c4cb212ac625ef7751d8cf6b8093068 Signed-off-by: Scott Williams <scwilliams@nvidia.com> DW: Split into logical changes, move hotplug notifier to timer-t3.c Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Rebase-Id: Rbfbfdb1720960dd9ce2847fb16daa932bebb16d2
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r--arch/arm/mach-tegra/pm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h
index 9a78f620f571..d6771e4b41b3 100644
--- a/arch/arm/mach-tegra/pm.h
+++ b/arch/arm/mach-tegra/pm.h
@@ -167,12 +167,19 @@ static inline void tegra_lp0_suspend_init(void)
void tegra2_lp2_set_trigger(unsigned long cycles);
unsigned long tegra2_lp2_timer_remain(void);
#endif
+#ifdef CONFIG_ARCH_TEGRA_3x_SOC
+void tegra3_lp2_set_trigger(unsigned long cycles);
+unsigned long tegra3_lp2_timer_remain(void);
+#endif
static inline void tegra_lp2_set_trigger(unsigned long cycles)
{
#ifdef CONFIG_ARCH_TEGRA_2x_SOC
tegra2_lp2_set_trigger(cycles);
#endif
+#ifdef CONFIG_ARCH_TEGRA_3x_SOC
+ tegra3_lp2_set_trigger(cycles);
+#endif
}
static inline unsigned long tegra_lp2_timer_remain(void)
@@ -180,6 +187,9 @@ static inline unsigned long tegra_lp2_timer_remain(void)
#ifdef CONFIG_ARCH_TEGRA_2x_SOC
return tegra2_lp2_timer_remain();
#endif
+#ifdef CONFIG_ARCH_TEGRA_3x_SOC
+ return tegra3_lp2_timer_remain();
+#endif
}
#if DEBUG_CLUSTER_SWITCH