浏览代码

openrisc: implement get_ticks and get_tbclk

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Stefan Kristiansson 13 年之前
父节点
当前提交
2bcffa6faa
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      arch/openrisc/lib/timer.c

+ 10 - 0
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;