From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MX27: add missing get_tbclk()
Date: Tue, 7 Feb 2012 22:26:21 +0100 [thread overview]
Message-ID: <201202072226.21911.marek.vasut@gmail.com> (raw)
In-Reply-To: <1328636027-23321-1-git-send-email-sbabic@denx.de>
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
> arch/arm/cpu/arm926ejs/mx27/timer.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c
> b/arch/arm/cpu/arm926ejs/mx27/timer.c index 5af9359..226c0a5 100644
> --- a/arch/arm/cpu/arm926ejs/mx27/timer.c
> +++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
> @@ -171,3 +171,11 @@ void __udelay(unsigned long usec)
> while (get_ticks() < tmp) /* loop till event */
> /*NOP*/;
> }
> +
> +ulong get_tbclk(void)
> +{
> + ulong tbclk;
> +
> + tbclk = CONFIG_MX27_CLK32;
> + return tbclk;
> +}
Why not simply ... return CONFIG... ?
M
next prev parent reply other threads:[~2012-02-07 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 17:33 [U-Boot] [PATCH] MX27: add missing get_tbclk() Stefano Babic
2012-02-07 21:26 ` Marek Vasut [this message]
2012-02-08 8:00 ` Stefano Babic
2012-02-08 8:28 ` [U-Boot] [PATCH V2] " Stefano Babic
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=201202072226.21911.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