From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sun, 3 Feb 2013 15:29:13 +0100 Subject: [U-Boot] [PATCH 2/2] ARM: highbank: use wfi macro instead of inline asm In-Reply-To: <1354503982-1124-2-git-send-email-robherring2@gmail.com> References: <1354503982-1124-1-git-send-email-robherring2@gmail.com> <1354503982-1124-2-git-send-email-robherring2@gmail.com> Message-ID: <20130203152913.6dd10522@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Rob, On Sun, 2 Dec 2012 21:06:22 -0600, Rob Herring wrote: > From: Rob Herring > > Older compilers don't recognize v7 wfi instruction, so use wfi macro to > fix builds on old compilers. > > Signed-off-by: Rob Herring > --- > 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.