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.c b/arch/arm/mach-msm/timer.c
index ecf91a5..99a1fb3 100644
--- a/arch/arm/mach-msm/timer.c
+++ b/arch/arm/mach-msm/timer.c
@@ -446,6 +446,12 @@
 	local_irq_restore(irq_flags);
 }
 
+/* Call this after SMP init */
+void __iomem *msm_timer_get_timer0_base(void)
+{
+	return MSM_TMR_BASE + global_timer_offset;
+}
+
 #ifdef CONFIG_PM
 /*
  * Retrieve the cycle count from sclk and optionally synchronize local clock