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:
parent
8e911cd690
commit
6a6c2dcb17
1 changed files with 3 additions and 1 deletions
|
|
@ -306,7 +306,9 @@ static inline void sleep_core(void)
|
||||||
interrupts */
|
interrupts */
|
||||||
CPU_CTL = 0x80000000;
|
CPU_CTL = 0x80000000;
|
||||||
#elif CONFIG_CPU == S3C2440
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue