summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorGreg White <gwhite@rockbox.org>2007-01-15 22:49:55 +0000
committerGreg White <gwhite@rockbox.org>2007-01-15 22:49:55 +0000
commit2127071653bd4cb7dc4ba8d6669d9771cc27a78b (patch)
treedcb59edf586e4fd8142cb8ba2e1aded88cfea8b9 /firmware
parent41ee9e33041dd2020e7ee3c44b81cef538b6592f (diff)
Turn off USB host and NAND flash controller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12019 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
index 6f48a76452..b922daaaa0 100644
--- a/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
+++ b/firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c
@@ -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);
+
}