From 0a952512c3d2d80dc1508b16ed307f43008ce012 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Wed, 8 Feb 2006 21:30:35 +0000 Subject: Sleep PP5020 CPU on idle. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8632 a1c6a512-1295-4272-9138-f99709370657 --- firmware/thread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/thread.c') diff --git a/firmware/thread.c b/firmware/thread.c index 2dd4a9539c..7cde9f5e9f 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -268,6 +268,10 @@ void switch_thread(void) #elif CONFIG_CPU == SH7034 and_b(0x7F, &SBYCR); asm volatile ("sleep"); +#elif CONFIG_CPU == PP5020 + /* This should sleep the CPU. It appears to wake by itself on + interrupts */ + CPU_CTL = 0x80000000; #elif CONFIG_CPU == TCC730 /* Sleep mode is triggered by the SYS instr on CalmRisc16. * Unfortunately, the manual doesn't specify which arg to use. -- cgit v1.2.3