Patch by Sam Song, 09 Jun 2004:
[oweals/u-boot.git] / cpu / sa1100 / interrupts.c
index 75f939c2cf1d3671190ddfcffaf01bd5218cfddc..00b6d2a02981ef0207db008ef72c6a9e146db853 100644 (file)
@@ -218,3 +218,24 @@ 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;
+}