summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 23c65ae041..7c729d4468 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -161,7 +161,8 @@ void fiq_handler(void)
);
}
-#if defined(BOOTLOADER) && (CONFIG_CPU == AS3525) /* not v2 */
+#if (CONFIG_CPU == AS3525) /* not v2 */
+#if defined(BOOTLOADER)
static void sdram_delay(void)
{
int delay = 1024; /* arbitrary */
@@ -233,7 +234,7 @@ static void sdram_init(void)
MPMC_DYNAMIC_CONFIG_0 |= (1<<19); /* buffer enable */
}
-#else
+#else /* !BOOTLOADER */
void memory_init(void)
{
ttb_init();
@@ -253,7 +254,8 @@ void memory_init(void)
enable_mmu();
}
-#endif
+#endif /* BOOTLOADER */
+#endif /* CONFIG_CPU == AS3525 (not v2) */
void system_init(void)
{