]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: Add get_tbclk() function for imx25
authorMatthias Weisser <weisserm@arcor.de>
Wed, 6 Jul 2011 00:28:28 +0000 (00:28 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 14 Jul 2011 13:41:24 +0000 (15:41 +0200)
Need this function for autoboot keyd

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
arch/arm/cpu/arm926ejs/mx25/timer.c

index 14f0c2dc73b923f28480abeccdba42a3675f2c12..7c8a71b9d3aece9f48ad341c90ef032b4c360875 100644 (file)
@@ -187,3 +187,15 @@ void __udelay (unsigned long usec)
        while (get_ticks() < tmp)       /* loop till event */
                 /*NOP*/;
 }
+
+/*
+ * 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 = CONFIG_MX25_CLK32;
+       return tbclk;
+}