* [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
@ 2012-02-22 4:40 Liming Wang
2012-02-22 11:06 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Liming Wang @ 2012-02-22 4:40 UTC (permalink / raw)
To: u-boot
From: walimis <walimisdev@gmail.com>
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.
Signed-off-by: walimis <walimisdev@gmail.com>
---
board/armltd/vexpress/ca9x4_ct_vxp.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c
index da6f14d..0b36d12 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;
+}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
@ 2012-02-22 5:33 walimis
0 siblings, 0 replies; 3+ messages in thread
From: walimis @ 2012-02-22 5:33 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: walimis <walimisdev@gmail.com>
---
board/armltd/vexpress/ca9x4_ct_vxp.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c
index da6f14d..0b36d12 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;
+}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
2012-02-22 4:40 Liming Wang
@ 2012-02-22 11:06 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-02-22 11:06 UTC (permalink / raw)
To: u-boot
> From: walimis <walimisdev@gmail.com>
>
> 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.
>
> Signed-off-by: walimis <walimisdev@gmail.com>
Please, put your real name in the SoB line. That's the purpose of the SoB line!
> ---
> board/armltd/vexpress/ca9x4_ct_vxp.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c
> b/board/armltd/vexpress/ca9x4_ct_vxp.c index da6f14d..0b36d12 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;
> +}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-22 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 5:33 [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk() walimis
-- strict thread matches above, loose matches on Subject: below --
2012-02-22 4:40 Liming Wang
2012-02-22 11:06 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox