soc: arm: stm32h7 do not use data cache with DMA
This remove the data cache when the dma is nabled This is done with the NOCACHE_MEMORY flag Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
92a6568d63
commit
6b6aa2714f
2 changed files with 3 additions and 0 deletions
|
@ -80,10 +80,12 @@ static int stm32h7_init(const struct device *arg)
|
|||
|
||||
SCB_EnableICache();
|
||||
|
||||
#ifndef CONFIG_NOCACHE_MEMORY
|
||||
if (!(SCB->CCR & SCB_CCR_DC_Msk)) {
|
||||
SCB_EnableDCache();
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NOCACHE_MEMORY */
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
*/
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
CONFIG_NOCACHE_MEMORY=y
|
Loading…
Add table
Add a link
Reference in a new issue