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:
parent
64d2449185
commit
195a1383a4
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue