[U-Boot] [PATCH v2 1/6] imx: Add get_tbclk() function for imx25
Matthias Weisser
weisserm at arcor.de
Wed Jul 6 12:28:28 CEST 2011
Need this function for autoboot keyd
Signed-off-by: Matthias Weisser <weisserm at arcor.de>
---
arch/arm/cpu/arm926ejs/mx25/timer.c | 12 ++++++++++++
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 14f0c2d..7c8a71b 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;
+}
--
1.7.0.4
More information about the U-Boot
mailing list