summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMatthias Weisser <weisserm@arcor.de>2011-07-06 00:28:28 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-07-14 15:41:24 +0200
commita7f39e7c222e0266a1ea7495adb7ed39076960a7 (patch)
tree8cf7f24503c475b7188b1040e042320109284ae3 /arch
parent81d668ea9025adbdc6ecc233ddcefbd6fe594113 (diff)
downloadblackbird-obmc-uboot-a7f39e7c222e0266a1ea7495adb7ed39076960a7.tar.gz
blackbird-obmc-uboot-a7f39e7c222e0266a1ea7495adb7ed39076960a7.zip
imx: Add get_tbclk() function for imx25
Need this function for autoboot keyd Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/arm926ejs/mx25/timer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx25/timer.c b/arch/arm/cpu/arm926ejs/mx25/timer.c
index 14f0c2dc73..7c8a71b9d3 100644
--- a/arch/arm/cpu/arm926ejs/mx25/timer.c
+++ b/arch/arm/cpu/arm926ejs/mx25/timer.c
@@ -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;
+}
OpenPOWER on IntegriCloud