commit | d19c2215f5423821b7fbbc2a4b0377fa25462268 | [log] [tgz] |
---|---|---|
author | Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> | Wed Feb 22 07:10:10 2012 +0000 |
committer | Tom Rini <trini@ti.com> | Tue Oct 02 11:55:45 2012 -0700 |
tree | 3a277ec5d29e984a7415b2874be320114e53a81f | |
parent | 3cd494954bbcf67c046e4ba0464a67bd96ae02be [diff] |
openrisc: implement get_ticks and get_tbclk Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
diff --git a/arch/openrisc/lib/timer.c b/arch/openrisc/lib/timer.c index 4e92a31..89e644b 100644 --- a/arch/openrisc/lib/timer.c +++ b/arch/openrisc/lib/timer.c
@@ -86,6 +86,16 @@ 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;