openrisc: implement get_ticks and get_tbclk
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Wed, 22 Feb 2012 07:10:10 +0000 (07:10 +0000)
committerTom 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

index 4e92a3115907771da1bc826118c19528a0c2a58f..89e644bc4736ab59853cf615bc5da5b678cb7618 100644 (file)
@@ -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;