summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2012-02-22 07:10:10 +0000
committerTom Rini <trini@ti.com>2012-10-02 11:55:45 -0700
commit2bcffa6faa6208e7202f039ddecb4a8e54d71102 (patch)
tree3a277ec5d29e984a7415b2874be320114e53a81f /arch
parent221953d41dea8dce027b9ce6beee700d97ac2c83 (diff)
downloadu-boot-imx-2bcffa6faa6208e7202f039ddecb4a8e54d71102.zip
u-boot-imx-2bcffa6faa6208e7202f039ddecb4a8e54d71102.tar.gz
u-boot-imx-2bcffa6faa6208e7202f039ddecb4a8e54d71102.tar.bz2
openrisc: implement get_ticks and get_tbclk
Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Diffstat (limited to 'arch')
-rw-r--r--arch/openrisc/lib/timer.c10
1 files changed, 10 insertions, 0 deletions
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 @@ 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;