mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
as3525*: stop MPMCCLKOUT when all SDRAMs are idle
Get a bit more battery life (between 30 minutes and 2 hours) as3525v2: only enabled in bootloader, we need a new binary release anwyway as3525v1: enabled in rockbox.sansa as well, so we can continue using the current bootloaders Flyspray: FS#11246 Author: myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25900 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fe29ad2edd
commit
b269b7854f
1 changed files with 5 additions and 2 deletions
|
|
@ -279,7 +279,8 @@ static void sdram_init(void)
|
|||
"ldr r4, [%0]\n"
|
||||
: : "p"(0x30000000+0x2300*MEM) : "r4");
|
||||
|
||||
MPMC_DYNAMIC_CONTROL = 0x2; /* SDRAM NORMAL, MPMCCLKOUT runs continuously */
|
||||
/* SDRAM NORMAL, MPMCCLKOUT stopped when SDRAM is idle */
|
||||
MPMC_DYNAMIC_CONTROL = 0x0;
|
||||
|
||||
MPMC_DYNAMIC_CONFIG_0 |= (1<<19); /* buffer enable */
|
||||
}
|
||||
|
|
@ -343,8 +344,10 @@ void system_init(void)
|
|||
#endif
|
||||
AS3525_PCLK_SEL);
|
||||
|
||||
#ifdef BOOTLOADER
|
||||
#if defined(BOOTLOADER)
|
||||
sdram_init();
|
||||
#elif CONFIG_CPU == AS3525 /* XXX: remove me when we have a new bootloader */
|
||||
MPMC_DYNAMIC_CONTROL = 0x0; /* MPMCCLKOUT stops when all SDRAMs are idle */
|
||||
#endif /* BOOTLOADER */
|
||||
|
||||
#if 0 /* the GPIO clock is already enabled by the dualboot function */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue