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>
This commit is contained in:
Rob Herring 2012-12-02 17:06:22 +00:00 committed by Albert ARIBAUD
parent 2ff467c051
commit 5bedf884a8
1 changed files with 2 additions and 1 deletions

View 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();
}