1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "Unified support for USB4 and Thunderbolt"
5 select APPLE_PROPERTIES if EFI_STUB && X86
11 USB4 and Thunderbolt driver. USB4 is the public specification
12 based on the Thunderbolt 3 protocol. This driver is required if
13 you want to hotplug Thunderbolt and USB4 compliant devices on
14 Apple hardware or on PCs with Intel Falcon Ridge or newer.
16 To compile this driver a module, choose M here. The module will be
21 config USB4_DEBUGFS_WRITE
22 bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
24 Enables writing to device configuration registers through
25 debugfs interface. You can use tools such as Thunderbolt/USB4
26 debugging tools to access these registers. For more
29 https://github.com/intel/tbtools
31 Only enable this if you know what you are doing! Never enable
32 this for production systems or distro kernels.
34 config USB4_DEBUGFS_MARGINING
35 bool "Expose receiver lane margining operations under USB4 ports and retimers (DANGEROUS)"
37 depends on USB4_DEBUGFS_WRITE
39 Enables hardware and software based receiver lane margining
40 support under each USB4 port and retimer, including retimers
41 on the other side of the cable. Used for electrical quality
42 and robustness validation during manufacturing. Should not be
43 enabled by distro kernels.
45 config USB4_KUNIT_TEST
46 bool "KUnit tests" if !KUNIT_ALL_TESTS
47 depends on USB4 && KUNIT=y
48 default KUNIT_ALL_TESTS
51 tristate "DMA traffic test driver"
54 This allows sending and receiving DMA traffic through loopback
55 connection. Loopback connection can be done by either special
56 dongle that has TX/RX lines crossed, or by simply connecting a
57 cable back to the host. Only enable this if you know what you
58 are doing. Normal users and distro kernels should say N here.
60 To compile this driver a module, choose M here. The module will be
61 called thunderbolt_dma_test.