1
0
Fork 0
forked from len0rd/rockbox

* Add basic (non-working) support for NAND flash

* Add panicf() handling
* Add not-yet-enabled dma acceleration
* Other (minor) fixes


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18203 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-08-06 20:39:02 +00:00
parent 496e1f7e85
commit 88ae9024e4
10 changed files with 455 additions and 135 deletions

View file

@ -1128,10 +1128,18 @@ static inline void core_sleep(void)
REG_CPM_LCR &= ~CPM_LCR_LPM_MASK;
REG_CPM_LCR |= CPM_LCR_LPM_SLEEP;
*/
asm volatile(".set mips3 \n"
"wait \n"
".set mips0 \n"
#if 0
asm volatile(".set mips32 \n"
"mfc0 t0, 12 \n"
"move t1, t0 \n"
"ori t0, t0, 0x8000000 \n" /* Enable reduced power mode */
"mtc0 t0, 12 \n"
"wait \n"
"mtc0 t1, 12 \n"
".set mips0 \n"
::: "t0", "t1"
);
#endif
/*
REG_CPM_LCR &= ~CPM_LCR_LPM_MASK;
REG_CPM_LCR |= CPM_LCR_LPM_IDLE;