1# SPDX-License-Identifier: Apache-2.0 2# 3# Copyright (c) 2024 ANDES Technology Inc. 4 5DT_COMPAT_ANDESTECH_L2C := andestech,l2c 6 7config CACHE_ANDES 8bool "ANDES external cache driver" 9 default y 10 depends on SOC_FAMILY_ANDES_V5 11 select CACHE_HAS_DRIVER 12 imply DCACHE_LINE_SIZE_DETECT 13 imply ICACHE_LINE_SIZE_DETECT 14 help 15 This option enables the CACHE driver for ANDES V5 series SOC. 16 17if CACHE_ANDES 18 19config L2C_INCLUSIVE_POLICY 20 bool 21 depends on $(dt_compat_enabled,$(DT_COMPAT_ANDESTECH_L2C)) 22 help 23 When L2 cache is inclusive of L1, CPU only needs to perform operations 24 on L2 cache, instead of on both L1 and L2 caches. 25 26config CACHE_ANDES_INIT_PRIORITY 27 int "Andes cache driver init priority" 28 default 60 29 help 30 This option controls the priority of the cache initialization. 31 Lower values indicate earlier initialization. 32 33endif # CACHE_ANDES 34