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