From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] ARM: highbank: use wfi macro instead of inline asm
Date: Sun, 3 Feb 2013 15:29:13 +0100 [thread overview]
Message-ID: <20130203152913.6dd10522@lilith> (raw)
In-Reply-To: <1354503982-1124-2-git-send-email-robherring2@gmail.com>
Hi Rob,
On Sun, 2 Dec 2012 21:06:22 -0600, Rob Herring <robherring2@gmail.com>
wrote:
> From: Rob Herring <rob.herring@calxeda.com>
>
> Older compilers don't recognize v7 wfi instruction, so use wfi macro to
> fix builds on old compilers.
>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
> ---
> board/highbank/highbank.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
> index f41bf05..09cd45d 100644
> --- a/board/highbank/highbank.c
> +++ b/board/highbank/highbank.c
> @@ -88,5 +88,6 @@ void dram_init_banksize(void)
> void reset_cpu(ulong addr)
> {
> writel(HB_PWR_HARD_RESET, HB_SREG_A9_PWR_REQ);
> - asm(" wfi");
> +
> + wfi();
> }
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-02-03 14:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 3:06 [U-Boot] [PATCH 1/2] ARM: add wfi assembly macro Rob Herring
2012-12-03 3:06 ` [U-Boot] [PATCH 2/2] ARM: highbank: use wfi macro instead of inline asm Rob Herring
2013-02-03 14:29 ` Albert ARIBAUD [this message]
2012-12-03 4:58 ` [U-Boot] [PATCH 1/2] ARM: add wfi assembly macro Marek Vasut
2012-12-03 13:32 ` Rob Herring
2012-12-03 14:39 ` Marek Vasut
2013-02-03 14:29 ` Albert ARIBAUD
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=20130203152913.6dd10522@lilith \
--to=albert.u.boot@aribaud.net \
--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