xref: /openbmc/linux/drivers/misc/cxl/Kconfig (revision 6a767685)
1#
2# IBM Coherent Accelerator (CXL) compatible devices
3#
4
5config CXL_BASE
6	bool
7	default n
8	select PPC_COPRO_BASE
9
10config CXL_AFU_DRIVER_OPS
11	bool
12	default n
13
14config CXL_LIB
15	bool
16	default n
17
18config CXL
19	tristate "Support for IBM Coherent Accelerators (CXL)"
20	depends on PPC_POWERNV && PCI_MSI && EEH
21	select CXL_BASE
22	select CXL_AFU_DRIVER_OPS
23	select CXL_LIB
24	default m
25	help
26	  Select this option to enable driver support for IBM Coherent
27	  Accelerators (CXL).  CXL is otherwise known as Coherent Accelerator
28	  Processor Interface (CAPI).  CAPI allows accelerators in FPGAs to be
29	  coherently attached to a CPU via an MMU.  This driver enables
30	  userspace programs to access these accelerators via /dev/cxl/afuM.N
31	  devices.
32
33	  CAPI adapters are found in POWER8 based systems.
34
35	  If unsure, say N.
36
37config CXL_BIMODAL
38	bool "Support for bi-modal CAPI cards"
39	depends on HOTPLUG_PCI_POWERNV = y && CXL || HOTPLUG_PCI_POWERNV = m && CXL = m
40	default y
41	help
42	  Select this option to enable support for bi-modal CAPI cards, such as
43	  the Mellanox CX-4.
44