[U-Boot] CPU Sleep in ARM Cortex A8
akshay ts
takshays at yahoo.co.in
Mon Oct 12 14:03:21 CEST 2009
Hi,
I want to know what is the instruction for sleeping in ARM Cortex A8.
I did execute a WFI instruction seems to be a NOP.
void cpu_idle()
{
unsigned long tmp = 0;
asm("b 1f\n\t"
".align 5\n\t"
"1:\n\t"
"mcr p15, 0, %0, c7, c10, 5\n\t"
"mcr p15, 0, %0, c7, c10, 4\n\t"
"mcr p15, 0, %0, c7, c0, 4" :: "r" (tmp));
return;
}
The above function doesnt seem to work.
Please let me know exact instructions to follow.
Warm Regards,
Akshay
Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore
More information about the U-Boot
mailing list