diff options
Diffstat (limited to 'board/zinger/hardware.c')
-rw-r--r-- | board/zinger/hardware.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/board/zinger/hardware.c b/board/zinger/hardware.c index 7e2cb013ea..1358220ee3 100644 --- a/board/zinger/hardware.c +++ b/board/zinger/hardware.c @@ -17,8 +17,11 @@ static void clock_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; /* Ensure that HSI8 is ON */ if (!(STM32_RCC_CR & (1 << 1))) { |