msm: timer: add api to get timer0's base
On some targets we have per-cpu timers that are accessible from either
core. Sometimes drivers need to access timer0's timer directly. Provide
the msm_timer_get_timer0_base api to abstract this for both targets with
per-core timers and targets without them.
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
diff --git a/arch/arm/mach-msm/timer.h b/arch/arm/mach-msm/timer.h
index 5388f68..545675c 100644
--- a/arch/arm/mach-msm/timer.h
+++ b/arch/arm/mach-msm/timer.h
@@ -16,6 +16,7 @@
extern struct sys_timer msm_timer;
+void __iomem *msm_timer_get_timer0_base(void);
int64_t msm_timer_enter_idle(void);
void msm_timer_exit_idle(int low_power);
int64_t msm_timer_get_sclk_time(int64_t *period);