projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81d668e
)
imx: Add get_tbclk() function for imx25
author
Matthias Weisser
<weisserm@arcor.de>
Wed, 6 Jul 2011 00:28:28 +0000
(
00:28
+0000)
committer
Albert 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
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/mx25/timer.c
b/arch/arm/cpu/arm926ejs/mx25/timer.c
index 14f0c2dc73b923f28480abeccdba42a3675f2c12..7c8a71b9d3aece9f48ad341c90ef032b4c360875 100644
(file)
--- 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;
+}