]> git.sur5r.net Git - u-boot/commitdiff
ARM: highbank: use wfi macro instead of inline asm
authorRob Herring <rob.herring@calxeda.com>
Sun, 2 Dec 2012 17:06:22 +0000 (17:06 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 3 Feb 2013 13:44:02 +0000 (14:44 +0100)
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

index f41bf05a518c1da4b2134639b67f2cfb1e33c72f..09cd45d3744154722d39dd4f5c1cb8dbe3fe2570 100644 (file)
@@ -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();
 }