From 2bcffa6faa6208e7202f039ddecb4a8e54d71102 Mon Sep 17 00:00:00 2001 From: Stefan Kristiansson Date: Wed, 22 Feb 2012 07:10:10 +0000 Subject: [PATCH] openrisc: implement get_ticks and get_tbclk Signed-off-by: Stefan Kristiansson --- arch/openrisc/lib/timer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/openrisc/lib/timer.c b/arch/openrisc/lib/timer.c index 4e92a31159..89e644bc47 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; -- 2.25.1