aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-05-07 20:50:01 -0500
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:50 -0700
commit4d82bee32b30d42516c53e168791c879ad762919 (patch)
treeab8fcb68e1ca706d98e4061542be350b0ebfcb71
parent3c36684e1c5bd352382eda70b5419b295a1fe62d (diff)
ARM: highbank: use hardcoded wfi instr for old compilers
Older compilers don't recognize v7 wfi instruction, so just hard-code the machine code and revert compiling with armv7. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
-rw-r--r--board/highbank/highbank.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index ab687e582..336110438 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -89,5 +89,6 @@ void reset_cpu(ulong addr)
{
writel(HB_PWR_HARD_RESET, HB_SREG_A9_PWR_REQ);
writeb(0x3, 0xfff10008);
- asm(" wfi");
+ /* older compilers don't understand wfi instr, so hardcode it */
+ asm(" .word 0xe320f003");
}