diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/gigabeat/meg-fx/system-meg-fx.c | 12 |
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) | |||
33 | /* Timer 4 */ | 33 | /* Timer 4 */ |
34 | if ((intpending & TIMER4_MASK) != 0) | 34 | if ((intpending & TIMER4_MASK) != 0) |
35 | timer4(); | 35 | timer4(); |
36 | else if ((intpending & DMA0_MASK) != 0) | 36 | else if ((intpending & DMA0_MASK) != 0) |
37 | dma0(); | 37 | dma0(); |
38 | else | 38 | else |
39 | { | 39 | { |
40 | /* unexpected interrupt */ | 40 | /* unexpected interrupt */ |
@@ -43,7 +43,7 @@ void irq(void) | |||
43 | 43 | ||
44 | void system_reboot(void) | 44 | void system_reboot(void) |
45 | { | 45 | { |
46 | WTCON = 0; | 46 | WTCON = 0; |
47 | WTCNT = WTDAT = 1 ; | 47 | WTCNT = WTDAT = 1 ; |
48 | WTCON = 0x21; | 48 | WTCON = 0x21; |
49 | for(;;) | 49 | for(;;) |
@@ -60,6 +60,12 @@ void system_init(void) | |||
60 | /* Turn off AC97 and Camera */ | 60 | /* Turn off AC97 and Camera */ |
61 | CLKCON &= ~( (1<<19) | (1<<20) ); | 61 | CLKCON &= ~( (1<<19) | (1<<20) ); |
62 | 62 | ||
63 | /* Turn off USB host */ | ||
64 | CLKCON &= ~(1 << 6); | ||
65 | |||
66 | /* Turn off NAND flash controller */ | ||
67 | CLKCON &= ~(1 << 4); | ||
68 | |||
63 | } | 69 | } |
64 | 70 | ||
65 | 71 | ||