xref: /openbmc/linux/drivers/thunderbolt/Kconfig (revision 635dcd16)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2690ac0d2SMika Westerbergmenuconfig USB4
3690ac0d2SMika Westerberg	tristate "Unified support for USB4 and Thunderbolt"
40cb4e2beSArnd Bergmann	depends on PCI
55fbc89d3SLukas Wunner	select APPLE_PROPERTIES if EFI_STUB && X86
6f34323b6SAndreas Noever	select CRC32
7f67cf491SMika Westerberg	select CRYPTO
8f67cf491SMika Westerberg	select CRYPTO_HASH
9e6b245ccSMika Westerberg	select NVMEM
1016603153SAndreas Noever	help
11b7c408a5SGeert Uytterhoeven	  USB4 and Thunderbolt driver. USB4 is the public specification
12b7c408a5SGeert Uytterhoeven	  based on the Thunderbolt 3 protocol. This driver is required if
13690ac0d2SMika Westerberg	  you want to hotplug Thunderbolt and USB4 compliant devices on
14690ac0d2SMika Westerberg	  Apple hardware or on PCs with Intel Falcon Ridge or newer.
1516603153SAndreas Noever
1616603153SAndreas Noever	  To compile this driver a module, choose M here. The module will be
1716603153SAndreas Noever	  called thunderbolt.
1854509f50SMika Westerberg
198eabfca5SMika Westerbergif USB4
208eabfca5SMika Westerberg
2154e41810SGil Fineconfig USB4_DEBUGFS_WRITE
2254e41810SGil Fine	bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
2354e41810SGil Fine	help
2454e41810SGil Fine	  Enables writing to device configuration registers through
2554e41810SGil Fine	  debugfs interface.
2654e41810SGil Fine
2754e41810SGil Fine	  Only enable this if you know what you are doing! Never enable
2854e41810SGil Fine	  this for production systems or distro kernels.
2954e41810SGil Fine
3054509f50SMika Westerbergconfig USB4_KUNIT_TEST
31*635dcd16SDavid Gow	bool "KUnit tests" if !KUNIT_ALL_TESTS
32*635dcd16SDavid Gow	depends on (USB4=m || KUNIT=y)
33*635dcd16SDavid Gow	depends on KUNIT
34*635dcd16SDavid Gow	default KUNIT_ALL_TESTS
358eabfca5SMika Westerberg
36edc0f494SIsaac Hazanconfig USB4_DMA_TEST
37edc0f494SIsaac Hazan	tristate "DMA traffic test driver"
38edc0f494SIsaac Hazan	depends on DEBUG_FS
39edc0f494SIsaac Hazan	help
40edc0f494SIsaac Hazan	  This allows sending and receiving DMA traffic through loopback
41edc0f494SIsaac Hazan	  connection. Loopback connection can be done by either special
42edc0f494SIsaac Hazan	  dongle that has TX/RX lines crossed, or by simply connecting a
43edc0f494SIsaac Hazan	  cable back to the host. Only enable this if you know what you
44edc0f494SIsaac Hazan	  are doing. Normal users and distro kernels should say N here.
45edc0f494SIsaac Hazan
46edc0f494SIsaac Hazan	  To compile this driver a module, choose M here. The module will be
47edc0f494SIsaac Hazan	  called thunderbolt_dma_test.
48edc0f494SIsaac Hazan
498eabfca5SMika Westerbergendif # USB4
50