Fixed a wrong function declare of 'nds_l2_cache_init'. Replace `SOC_FAMILY_ANDES_V5` with `DT_HAS_ANDESTECH_ANDESCORE_V5_ENABLED` condition to enable it to be used by compatible MCUs Signed-off-by: Jacky Lee <jacky.lee@egistec.com>
30 lines
755 B
Plaintext
30 lines
755 B
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (c) 2024 ANDES Technology Inc.
|
|
|
|
config CACHE_ANDES
|
|
bool "ANDES external cache driver"
|
|
default y
|
|
depends on DT_HAS_ANDESTECH_ANDESCORE_V5_ENABLED
|
|
select CACHE_HAS_DRIVER
|
|
help
|
|
This option enables the CACHE driver for SoC based on Andes V5 core.
|
|
|
|
if CACHE_ANDES
|
|
|
|
config L2C_INCLUSIVE_POLICY
|
|
bool
|
|
depends on DT_HAS_ANDESTECH_L2C_ENABLED
|
|
help
|
|
When L2 cache is inclusive of L1, CPU only needs to perform operations
|
|
on L2 cache, instead of on both L1 and L2 caches.
|
|
|
|
config CACHE_ANDES_INIT_PRIORITY
|
|
int "Andes cache driver init priority"
|
|
default 60
|
|
help
|
|
This option controls the priority of the cache initialization.
|
|
Lower values indicate earlier initialization.
|
|
|
|
endif # CACHE_ANDES
|