Files
zephyr/drivers/cache/Kconfig.stm32
Jamie McCrae 8498c39e13 drivers: Fix some Kconfig bleeds
Fixes instances of Kconfig options appearing for completely
irrelevant builds

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-18 13:50:33 -04:00

26 lines
760 B
Plaintext

# Copyright (c) 2025 Henrik Lindblom <henrik.lindblom@vaisala.com>
# SPDX-License-Identifier: Apache-2.0
menuconfig CACHE_STM32
bool "STM32 cache driver"
select CACHE_HAS_DRIVER
depends on SOC_FAMILY_STM32
depends on CACHE_MANAGEMENT
help
Enable support for the STM32 ICACHE / DCACHE peripheral present in some STM32 chips.
if CACHE_STM32
# "default n" for L5 is legacy - could be removed?
config CACHE_STM32_ICACHE_DIRECT_MAPPING
bool "Use 1-way associative mapping for ICACHE"
default n if SOC_SERIES_STM32L5X
default y
help
Use ICACHE in direct mapping (1-way associative) mode instead of the default n-way
associative cache mode.
This option reduces power consumption but slightly reduces cache's performance.
endif # CACHE_STM32