soc: arm: stm32h7: enable ART flash cache accelerator

Enable Instruction cache accelerator for Cortex M4
first 1MB of Flash.
As per Reference Manual: no need for cache coherency management

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

View file

@ -67,6 +67,11 @@ static int stm32h7_m4_init(const struct device *arg)
{
uint32_t key;
/* Enable ART Flash cache accelerator */
LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_ART);
LL_ART_SetBaseAddress(DT_REG_ADDR(DT_CHOSEN(zephyr_flash)));
LL_ART_Enable();
key = irq_lock();
/* Install default handler that simply resets the CPU