Explorar o código

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 <rob.herring@calxeda.com>
Rob Herring %!s(int64=12) %!d(string=hai) anos
pai
achega
5bedf884a8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      board/highbank/highbank.c

+ 2 - 1
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();
 }