projects
/
oweals
/
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 4e92a3115907771da1bc826118c19528a0c2a58f..89e644bc4736ab59853cf615bc5da5b678cb7618 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;
}
+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;