From: Rob Herring Date: Sun, 2 Dec 2012 17:06:22 +0000 (+0000) Subject: ARM: highbank: use wfi macro instead of inline asm X-Git-Tag: v2013.04-rc1~48^2~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bedf884a8508f1b2f5b8f74e67d987a81ff05ed;p=oweals%2Fu-boot.git ARM: highbank: use wfi macro instead of inline asm Older compilers don't recognize v7 wfi instruction, so use wfi macro to fix builds on old compilers. Signed-off-by: Rob Herring --- diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c index f41bf05a51..09cd45d374 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(); }