1
0
Fork 0
forked from len0rd/rockbox

fix idle mode for the gigabeat

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11860 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2006-12-29 23:29:04 +00:00
parent 8e911cd690
commit 6a6c2dcb17

View file

@ -306,7 +306,9 @@ static inline void sleep_core(void)
interrupts */
CPU_CTL = 0x80000000;
#elif CONFIG_CPU == S3C2440
CLKCON |= 2;
CLKCON |= (1 << 2); /* set IDLE bit */
for(i=0; i<10; i++); /* wait for IDLE */
CLKCON &= ~(1 << 2); /* reset IDLE bit when wake up */
#endif
}
}