summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 47cb465c62..51fcd97980 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -279,7 +279,8 @@ static void sdram_init(void)
279 "ldr r4, [%0]\n" 279 "ldr r4, [%0]\n"
280 : : "p"(0x30000000+0x2300*MEM) : "r4"); 280 : : "p"(0x30000000+0x2300*MEM) : "r4");
281 281
282 MPMC_DYNAMIC_CONTROL = 0x2; /* SDRAM NORMAL, MPMCCLKOUT runs continuously */ 282 /* SDRAM NORMAL, MPMCCLKOUT stopped when SDRAM is idle */
283 MPMC_DYNAMIC_CONTROL = 0x0;
283 284
284 MPMC_DYNAMIC_CONFIG_0 |= (1<<19); /* buffer enable */ 285 MPMC_DYNAMIC_CONFIG_0 |= (1<<19); /* buffer enable */
285} 286}
@@ -343,8 +344,10 @@ void system_init(void)
343#endif 344#endif
344 AS3525_PCLK_SEL); 345 AS3525_PCLK_SEL);
345 346
346#ifdef BOOTLOADER 347#if defined(BOOTLOADER)
347 sdram_init(); 348 sdram_init();
349#elif CONFIG_CPU == AS3525 /* XXX: remove me when we have a new bootloader */
350 MPMC_DYNAMIC_CONTROL = 0x0; /* MPMCCLKOUT stops when all SDRAMs are idle */
348#endif /* BOOTLOADER */ 351#endif /* BOOTLOADER */
349 352
350#if 0 /* the GPIO clock is already enabled by the dualboot function */ 353#if 0 /* the GPIO clock is already enabled by the dualboot function */