xref: /linux/drivers/cache/Kconfig (revision 11efc1cb7016e300047822fd60e0f4b4158bd56d)
1# SPDX-License-Identifier: GPL-2.0
2
3menuconfig CACHEMAINT_FOR_DMA
4	bool "Cache management for noncoherent DMA"
5	depends on RISCV
6	default y
7	help
8	  These drivers implement support for noncoherent DMA master devices
9	  on platforms that lack the standard CPU interfaces for this.
10
11if CACHEMAINT_FOR_DMA
12
13config AX45MP_L2_CACHE
14	bool "Andes Technology AX45MP L2 Cache controller"
15	select RISCV_NONSTANDARD_CACHE_OPS
16	help
17	  Support for the L2 cache controller on Andes Technology AX45MP platforms.
18
19config SIFIVE_CCACHE
20	bool "Sifive Composable Cache controller"
21	depends on ARCH_SIFIVE || ARCH_STARFIVE
22	help
23	  Support for the composable cache controller on SiFive platforms.
24
25config STARFIVE_STARLINK_CACHE
26	bool "StarFive StarLink Cache controller"
27	depends on ARCH_STARFIVE
28	depends on 64BIT
29	select RISCV_DMA_NONCOHERENT
30	select RISCV_NONSTANDARD_CACHE_OPS
31	help
32	  Support for the StarLink cache controller IP from StarFive.
33
34endif #CACHEMAINT_FOR_DMA
35
36menuconfig CACHEMAINT_FOR_HOTPLUG
37	bool "Cache management for memory hot plug like operations"
38	depends on GENERIC_CPU_CACHE_MAINTENANCE
39	help
40	  These drivers implement cache management for flows where it is necessary
41	  to flush data from all host caches.
42
43if CACHEMAINT_FOR_HOTPLUG
44
45config HISI_SOC_HHA
46	tristate "HiSilicon Hydra Home Agent (HHA) device driver"
47	depends on (ARM64 && ACPI) || COMPILE_TEST
48	help
49	  The Hydra Home Agent (HHA) is responsible for cache coherency
50	  on the SoC. This drivers enables the cache maintenance functions of
51	  the HHA.
52
53	  This driver can be built as a module. If so, the module will be
54	  called hisi_soc_hha.
55
56endif #CACHEMAINT_FOR_HOTPLUG
57