rendered paste bodyIndex: firmware/target/arm/system-pp502x.c
===================================================================
--- firmware/target/arm/system-pp502x.c (revision 16414)
+++ firmware/target/arm/system-pp502x.c (working copy)
@@ -138,8 +138,8 @@
CACHE_CTL |= CACHE_CTL_INIT | CACHE_CTL_ENABLE | CACHE_CTL_RUN;
nop; nop; nop; nop;
}
+#endif /* !BOOTLOADER */
-#ifdef HAVE_ADJUSTABLE_CPU_FREQ
void scale_suspend_core(bool suspend) ICODE_ATTR;
void scale_suspend_core(bool suspend)
{
@@ -164,6 +164,7 @@
}
}
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
void set_cpu_frequency(long frequency) ICODE_ATTR;
void set_cpu_frequency(long frequency)
#else
@@ -285,7 +286,6 @@
spinlock_unlock(&boostctrl_spin);
#endif
}
-#endif /* !BOOTLOADER */
void system_init(void)
{
@@ -418,6 +418,13 @@
}
init_cache();
+#else /* BOOTLOADER */
+ if (CURRENT_CORE == CPU)
+ {
+#if defined(SANSA_C200) || defined (SANSA_E200)
+ pp_set_cpu_frequency(CPUFREQ_MAX);
+#endif
+ }
#endif /* BOOTLOADER */
}