diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-07-25 14:34:22 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 00:55:40 -0700 |
commit | 27f1d3124a2f3f1db1f8fa77c0adcb4499d48a55 (patch) | |
tree | a94f757a6606e7288ff9a57190519dbea7502acc /arch/arm/mach-tegra/pm.h | |
parent | cc8e7362467e6e489c0d1424d889f59c7677f9b9 (diff) |
ARM: tegra2: Update LP2 timers
Clean up conditionals for LP2 timers
Register an interrupt handler for the LP2 timer
Change-Id: I6ee6b6971f45f33d5d9295a462778af1d1c9843b
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
DW: Split into logical changes
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R6cec04d1c66dc3af22cb9ab7afe0dffaba891cea
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r-- | arch/arm/mach-tegra/pm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index c0224fb9ba3f..13c5845f7b8c 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -165,12 +165,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) @@ -178,6 +185,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 |