summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-06-25 13:31:21 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-06-25 13:31:21 +0000
commit0fd69f6cbb44ce1e7e83ea627d533ea7d747f1de (patch)
treeff25bbd8e40ab9747060771a5a725572c7eb17a5
parent00dd14922b48ca29411d9ae3445dc5d92d050422 (diff)
downloadrockbox-0fd69f6cbb44ce1e7e83ea627d533ea7d747f1de.tar.gz
rockbox-0fd69f6cbb44ce1e7e83ea627d533ea7d747f1de.zip
Gigabeat: Turn off more devices that aren't needed or not needed right away. Tests ok on my unit. Will check currents later.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13711 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c40
1 files changed, 27 insertions, 13 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c
index 3c9f77c5f9..aa011dc56b 100644
--- a/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/system-meg-fx.c
@@ -54,26 +54,40 @@ void system_reboot(void)
54 54
55void system_init(void) 55void system_init(void)
56{ 56{
57 /* Turn off un-needed devices */ 57 /* Turn off currently-not or never-needed devices */
58 58
59 /* Turn off all of the UARTS */ 59 CLKCON &= ~(
60 CLKCON &= ~( (1<<10) | (1<<11) |(1<<12) ); 60 /* Turn off AC97 and Camera */
61 (1<<19) | (1<<20)
61 62
62 /* Turn off AC97 and Camera */ 63 /* Turn off SPI */
63 CLKCON &= ~( (1<<19) | (1<<20) ); 64 | (1 << 18)
64 65
65 /* Turn off USB host */ 66 /* Turn off IIS */
66 CLKCON &= ~(1 << 6); 67 | (1 << 17)
67 68
68 /* Turn off USB device */ 69 /* Turn off I2C */
69 CLKCON &= ~(1 << 7); 70 | (1 << 16)
71
72 /* Turn off all of the UARTS */
73 | ( (1<<10) | (1<<11) |(1<<12) )
74
75 /* Turn off MMC/SD/SDIO Controller (SDI) */
76 | (1 << 9)
70 77
71 /* Turn off NAND flash controller */ 78 /* Turn off USB device */
72 CLKCON &= ~(1 << 4); 79 | (1 << 7)
80
81 /* Turn off USB host */
82 | (1 << 6)
83
84 /* Turn off NAND flash controller */
85 | (1 << 4)
86
87 );
73 88
74 /* Turn off the USB PLL */ 89 /* Turn off the USB PLL */
75 CLKSLOW |= (1 << 7); 90 CLKSLOW |= (1 << 7);
76
77} 91}
78 92
79 93