soc: arm: smartbond: Enable cache retainability in sleep

This enables cache retainability while in sleep so there's no penalty
when executing from QSPI after wakeup.

Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
This commit is contained in:
Andrzej Kaczmarek 2023-06-07 15:42:47 +02:00 committed by Carles Cufí
parent fbc7a9e209
commit 80c5f72fe2

View file

@ -149,6 +149,11 @@ static int renesas_da1469x_init(void)
/* PDC should take care of PD_SYS */
CRG_TOP->PMU_CTRL_REG &= ~CRG_TOP_PMU_CTRL_REG_SYS_SLEEP_Msk;
#if defined(CONFIG_PM)
/* Enable cache retainability */
CRG_TOP->PMU_CTRL_REG |= CRG_TOP_PMU_CTRL_REG_RETAIN_CACHE_Msk;
#endif
/*
* Due to crosstalk issues any power rail can potentially
* issue a fake event. This is typically observed upon