]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/pantheon/timer.c
bugfix: all Marvell specific build fails due to undefined reference to `get_ticks'
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / pantheon / timer.c
index 17045b1c2f688e423e39254125a4032e89f652fa..28aadada7033bad0e82a9a4b7a2e2e34198b4935 100644 (file)
@@ -197,3 +197,21 @@ void reset_cpu (unsigned long ignored)
        /*enable functional WDT clock */
        writel(APBC_APBCLK | APBC_FNCLK, &mpmu->wdtpcr);
 }
+
+/*
+ * 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)
+{
+       return (ulong)CONFIG_SYS_HZ;
+}