public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk()
Date: Wed, 22 Feb 2012 12:06:36 +0100	[thread overview]
Message-ID: <201202221206.36924.marek.vasut@gmail.com> (raw)
In-Reply-To: <1329885651-15410-1-git-send-email-liming.wang@windriver.com>

> 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;
> +}

  reply	other threads:[~2012-02-22 11:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  4:40 [U-Boot] [PATCH] ARMV7/Vexpress: add missing get_ticks() and get_tbclk() Liming Wang
2012-02-22 11:06 ` Marek Vasut [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-02-22  5:33 walimis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201202221206.36924.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox