stm32: Enable instruction and data cache on stm32h7

Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
This commit is contained in:
D4SK authored and Kevin O'Connor committed 2022-10-21 20:29:12 -04:00
1 parent 0d9b2cc1fa
commit 00191b5cc4
1 file changed
+3
+3
View File
@@ -148,6 +148,9 @@ clock_setup(void)
;
}
SCB_EnableICache();
SCB_EnableDCache();
// Set flash latency according to clock frequency (pg.159)
uint32_t flash_acr_latency = (CONFIG_CLOCK_FREQ > 450000000) ?
FLASH_ACR_LATENCY_4WS : FLASH_ACR_LATENCY_2WS;