projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
221953d
)
openrisc: implement get_ticks and get_tbclk
author
Stefan Kristiansson
<stefan.kristiansson@saunalahti.fi>
Wed, 22 Feb 2012 07:10:10 +0000
(07:10 +0000)
committer
Tom Rini
<trini@ti.com>
Tue, 2 Oct 2012 18:55:45 +0000
(11:55 -0700)
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
arch/openrisc/lib/timer.c
patch
|
blob
|
history
diff --git
a/arch/openrisc/lib/timer.c
b/arch/openrisc/lib/timer.c
index
4e92a31
..
89e644b
100644
(file)
--- a/
arch/openrisc/lib/timer.c
+++ b/
arch/openrisc/lib/timer.c
@@
-86,6
+86,16
@@
void set_timer(ulong t)
timestamp = t;
}
timestamp = t;
}
+unsigned long long get_ticks(void)
+{
+ return get_timer(0);
+}
+
+ulong get_tbclk(void)
+{
+ return CONFIG_SYS_HZ;
+}
+
void __udelay(ulong usec)
{
ulong elapsed = 0;
void __udelay(ulong usec)
{
ulong elapsed = 0;