forked from len0rd/rockbox
Turn off USB host and NAND flash controller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12019 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
41ee9e3304
commit
2127071653
1 changed files with 9 additions and 3 deletions
|
@ -33,8 +33,8 @@ void irq(void)
|
|||
/* Timer 4 */
|
||||
if ((intpending & TIMER4_MASK) != 0)
|
||||
timer4();
|
||||
else if ((intpending & DMA0_MASK) != 0)
|
||||
dma0();
|
||||
else if ((intpending & DMA0_MASK) != 0)
|
||||
dma0();
|
||||
else
|
||||
{
|
||||
/* unexpected interrupt */
|
||||
|
@ -43,7 +43,7 @@ void irq(void)
|
|||
|
||||
void system_reboot(void)
|
||||
{
|
||||
WTCON = 0;
|
||||
WTCON = 0;
|
||||
WTCNT = WTDAT = 1 ;
|
||||
WTCON = 0x21;
|
||||
for(;;)
|
||||
|
@ -60,6 +60,12 @@ void system_init(void)
|
|||
/* Turn off AC97 and Camera */
|
||||
CLKCON &= ~( (1<<19) | (1<<20) );
|
||||
|
||||
/* Turn off USB host */
|
||||
CLKCON &= ~(1 << 6);
|
||||
|
||||
/* Turn off NAND flash controller */
|
||||
CLKCON &= ~(1 << 4);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue