summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-12-29 02:49:12 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-12-29 02:49:12 +0000
commit295367686ec9855c4d90f68a6003e819fef8e7ab (patch)
treeb4077ffb8d2283bf199ad12a90322be77040c2fd /firmware/system.c
parent995a804defda23233ccbdd859023f4ba3ecba0bf (diff)
merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 2ec9ff7a41..2bbcd06378 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -86,7 +86,15 @@ void cpu_idle_mode(bool on_off)
void system_reboot(void) {
}
-void system_init(void) {
+void system_init(void)
+{
+ /* Turn off un-needed devices */
+
+ /* Turn off all of the UARTS */
+ CLKCON &= ~( (1<<10) | (1<<11) |(1<<12) );
+
+ /* Turn off AC97 and Camera */
+ CLKCON &= ~( (1<<19) | (1<<20) );
}
#endif