From: Stefan Kristiansson Date: Wed, 22 Feb 2012 07:10:10 +0000 (+0000) Subject: openrisc: implement get_ticks and get_tbclk X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2bcffa6faa6208e7202f039ddecb4a8e54d71102;p=u-boot.git openrisc: implement get_ticks and get_tbclk Signed-off-by: Stefan Kristiansson --- 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;