Skip to contentSkip to conversation

ARMV7/Vexpress: add missing get_ticks() and get_tbclk()

PATCH RESEND New walimis 3 participants 3 messages Feb 22, 2012 – Mar 26, 2012 Arm/versatile express platform

lore
Share & tools
lore

walimis

author
#0 lore raw

PATCH RESEND 1/1 ARMV7/Vexpress: add missing get_ticks() and get_tbclk()

From: Liming Wang <[email protected]>

commit f31a911fe (arm, post: add missing post_time_ms for arm) enables get_ticks and get_tbclk for all arm based boards, arm/vexpress also needs these functions to work.

---
 board/armltd/vexpress/ca9x4_ct_vxp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
board/armltd/vexpress/ca9x4_ct_vxp.c +10 -0
index da6f14d..0b36d12 100644
@@ -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;
+}
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH RESEND 1/1 ARMV7/Vexpress: add missing get_ticks() and get_tbclk()

Quoted 7 lines · walimis

From: Liming Wang <[email protected]>

commit f31a911fe (arm, post: add missing post_time_ms for arm) enables get_ticks and get_tbclk for all arm based boards, arm/vexpress also needs these functions to work.

Acked-by Matt.Waddel at linaro.org
Quoted 22 lines
---
 board/armltd/vexpress/ca9x4_ct_vxp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
board/armltd/vexpress/ca9x4_ct_vxp.c +10 -0
index da6f14d..0b36d12 100644
@@ -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;
+}
#2 lore raw

PATCH RESEND 1/1 ARMV7/Vexpress: add missing get_ticks() and get_tbclk()

In reply to walimis

Hi,

Quoted 10 lines · On Wed, 22 Feb 2012 22:56:31 +0800 walimis <[email protected]> wrote:

From: Liming Wang <[email protected]>

commit f31a911fe (arm, post: add missing post_time_ms for arm) enables get_ticks and get_tbclk for all arm based boards, arm/vexpress also needs these functions to work.

---
 board/armltd/vexpress/ca9x4_ct_vxp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Applied to u-boot-staging/agust at denx.de. Thanks.

Anatolij