summaryrefslogtreecommitdiff
path: root/cpu/pxa/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/pxa/interrupts.c')
-rw-r--r--cpu/pxa/interrupts.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpu/pxa/interrupts.c b/cpu/pxa/interrupts.c
index cf529f4..b161b74 100644
--- a/cpu/pxa/interrupts.c
+++ b/cpu/pxa/interrupts.c
@@ -202,3 +202,23 @@ void udelay_masked (unsigned long usec)
while (tmo >= get_timer_masked ())
/*NOP*/;
}
+
+/*
+ * This function is derived from PowerPC code (read timebase as long long).
+ * On ARM it just returns the timer value.
+ */
+unsigned long long get_ticks(void)
+{
+ return get_timer(0);
+}
+
+/*
+ * This function is derived from PowerPC code (timebase clock frequency).
+ * On ARM it returns the number of timer ticks per second.
+ */
+ulong get_tbclk (void)
+{
+ ulong tbclk;
+ tbclk = CFG_HZ;
+ return tbclk;
+}