[U-Boot] [PATCH 2/2] ARM: highbank: use wfi macro instead of inline asm

Rob Herring robherring2 at gmail.com
Mon Dec 3 04:06:22 CET 2012


From: Rob Herring <rob.herring at 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 at 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();
 }
-- 
1.7.10.4



More information about the U-Boot mailing list