diff options
author | Scott Williams <scwilliams@nvidia.com> | 2011-07-18 17:42:46 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:48 -0800 |
commit | 3f21523980f662b5cb701a7c949d64c9524a631b (patch) | |
tree | 9b7a1744abb60f136b06a09b1d7d10ec4f58e6b8 /arch/arm/mach-tegra/pm.h | |
parent | 07e32729adeff79693e0da4f64ade4a64f52b024 (diff) |
ARM: tegra2: Add LP2 Timers
Restore the Tegra2 LP2 timers that were dropped in the port to Linux
2.6.39.
Change-Id: Ie3958fa3c89886d5dc5a5858c694400bd1421741
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
DW: Split into logical changes
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R63ede668965d11ac2b2114ffa817b690a616205a
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r-- | arch/arm/mach-tegra/pm.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index 8729f1260201..9617fcd44cdf 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -148,6 +148,25 @@ void tegra_lp0_suspend_mc(void); void tegra_lp0_resume_mc(void); #endif +#ifdef CONFIG_ARCH_TEGRA_2x_SOC +void tegra2_lp2_set_trigger(unsigned long cycles); +unsigned long tegra2_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 +} + +static inline unsigned long tegra_lp2_timer_remain(void) +{ +#ifdef CONFIG_ARCH_TEGRA_2x_SOC + return tegra2_lp2_timer_remain(); +#endif +} + #if DEBUG_CLUSTER_SWITCH extern unsigned int tegra_cluster_debug; #define DEBUG_CLUSTER(x) do { if (tegra_cluster_debug) printk x; } while (0) |