diff mbox

[1/1] arm: vexpress: Fixed get_ticks/get_tbclk build failures

Message ID 1330997936-22822-1-git-send-email-matt.waddel@linaro.org
State New
Headers show

Commit Message

matt.waddel@linaro.org March 6, 2012, 1:38 a.m. UTC
From: Matt Waddel <matt.waddel@linaro.org>

Added get_ticks() and get_tbclk() routines
Signed-off-by: Matt Waddel <matt.waddel@linaro.org>
---
 board/armltd/vexpress/ca9x4_ct_vxp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c
index da6f14d..22e5af1 100644
--- a/board/armltd/vexpress/ca9x4_ct_vxp.c
+++ b/board/armltd/vexpress/ca9x4_ct_vxp.c
@@ -226,3 +226,13 @@  void lowlevel_init(void)
 ulong get_board_rev(void){
 	return readl((u32 *)SYS_ID);
 }
+
+unsigned long long get_ticks(void)
+{
+	return get_timer(0);
+}
+
+ulong get_tbclk(void)
+{
+	return (ulong)CONFIG_SYS_HZ;
+}