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:
31bb50f
)
MX31: add missing get_tbclk()
author
Stefano Babic
<sbabic@denx.de>
Sat, 4 Feb 2012 12:02:01 +0000
(13:02 +0100)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:23 +0000
(21:19 +0100)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Helmut Raiger <helmut.raiger@hale.at>
arch/arm/cpu/arm1136/mx31/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm1136/mx31/timer.c
b/arch/arm/cpu/arm1136/mx31/timer.c
index f494440094e49b4f70ef2fa898ed86f2623dddf5..72081a8bde263a0ae8a4631e4e96abfa06bd0d81 100644
(file)
--- a/
arch/arm/cpu/arm1136/mx31/timer.c
+++ b/
arch/arm/cpu/arm1136/mx31/timer.c
@@
-153,6
+153,15
@@
void __udelay(unsigned long usec)
/*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)
+{
+ return CONFIG_MX31_CLK32;
+}
+
void reset_cpu(ulong addr)
{
struct wdog_regs *wdog = (struct wdog_regs *)WDOG_BASE;