soc: arm: stm32f7: enable ART flash cache accelerator

Enable Instruction cache accelerator.

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
Alexandre Bourdiol 2021-06-15 15:25:11 +02:00 committed by Anas Nashif
commit 195a1383a4

View file

@ -15,6 +15,7 @@
#include <soc.h>
#include <arch/cpu.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#include <stm32_ll_system.h>
/**
* @brief Perform basic hardware initialization at boot.
@ -30,6 +31,9 @@ static int st_stm32f7_init(const struct device *arg)
ARG_UNUSED(arg);
/* Enable ART Flash cache accelerator */
LL_FLASH_EnableART();
key = irq_lock();
SCB_EnableICache();