Skip to content
Commit 6a3309a9 authored by Henrik Lindblom's avatar Henrik Lindblom Committed by Benjamin Cabé
Browse files

cache: stm32: add cortex-m33 peripheral driver

STM32 Cortex-M33, such as the L5/H5/U5 series, have a cache peripheral for
instruction and data caches, which are not present in the C-M33
architecture spec.

The driver defaults to direct mapped cache as it uses less power than the
alternative set associative mapping [1]. This has also been the default in
stm32 soc initialization code for chips that have the ICACHE peripheral,
which makes it the safest choice for backward compatibility. The exception
to the rule is STM32L5, which has the n-way cache mode selected in SOC
code.

[1]: https://en.wikipedia.org/wiki/Cache_placement_policies



Signed-off-by: default avatarHenrik Lindblom <henrik.lindblom@vaisala.com>
parent 1d3018ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment