mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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
This commit is contained in:
parent
00dd14922b
commit
0fd69f6cbb
1 changed files with 27 additions and 13 deletions
|
|
@ -54,26 +54,40 @@ void system_reboot(void)
|
||||||
|
|
||||||
void system_init(void)
|
void system_init(void)
|
||||||
{
|
{
|
||||||
/* Turn off un-needed devices */
|
/* Turn off currently-not or never-needed devices */
|
||||||
|
|
||||||
/* Turn off all of the UARTS */
|
CLKCON &= ~(
|
||||||
CLKCON &= ~( (1<<10) | (1<<11) |(1<<12) );
|
/* Turn off AC97 and Camera */
|
||||||
|
(1<<19) | (1<<20)
|
||||||
|
|
||||||
/* Turn off AC97 and Camera */
|
/* Turn off SPI */
|
||||||
CLKCON &= ~( (1<<19) | (1<<20) );
|
| (1 << 18)
|
||||||
|
|
||||||
/* Turn off USB host */
|
/* Turn off IIS */
|
||||||
CLKCON &= ~(1 << 6);
|
| (1 << 17)
|
||||||
|
|
||||||
|
/* Turn off I2C */
|
||||||
|
| (1 << 16)
|
||||||
|
|
||||||
|
/* Turn off all of the UARTS */
|
||||||
|
| ( (1<<10) | (1<<11) |(1<<12) )
|
||||||
|
|
||||||
|
/* Turn off MMC/SD/SDIO Controller (SDI) */
|
||||||
|
| (1 << 9)
|
||||||
|
|
||||||
|
/* Turn off USB device */
|
||||||
|
| (1 << 7)
|
||||||
|
|
||||||
|
/* Turn off USB host */
|
||||||
|
| (1 << 6)
|
||||||
|
|
||||||
|
/* Turn off NAND flash controller */
|
||||||
|
| (1 << 4)
|
||||||
|
|
||||||
/* Turn off USB device */
|
);
|
||||||
CLKCON &= ~(1 << 7);
|
|
||||||
|
|
||||||
/* Turn off NAND flash controller */
|
|
||||||
CLKCON &= ~(1 << 4);
|
|
||||||
|
|
||||||
/* Turn off the USB PLL */
|
/* Turn off the USB PLL */
|
||||||
CLKSLOW |= (1 << 7);
|
CLKSLOW |= (1 << 7);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue