summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/zinger/runtime.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c
index e7fb421f49..407daa5c54 100644
--- a/board/zinger/runtime.c
+++ b/board/zinger/runtime.c
@@ -93,8 +93,11 @@ static void config_hispeed_clock(void)
void runtime_init(void)
{
- /* put 1 Wait-State for flash access to ensure proper reads at 48Mhz */
- STM32_FLASH_ACR = 0x1001; /* 1 WS / Prefetch enabled */
+ /*
+ * put 1 Wait-State for flash access to ensure proper reads at 48Mhz
+ * and enable prefetch buffer.
+ */
+ STM32_FLASH_ACR = STM32_FLASH_ACR_LATENCY | STM32_FLASH_ACR_PRFTEN;
config_hispeed_clock();