Commit | Line | Data |
---|---|---|
ec8f24b7 | 1 | # SPDX-License-Identifier: GPL-2.0-only |
690ac0d2 MW |
2 | menuconfig USB4 |
3 | tristate "Unified support for USB4 and Thunderbolt" | |
0cb4e2be | 4 | depends on PCI |
5fbc89d3 | 5 | select APPLE_PROPERTIES if EFI_STUB && X86 |
f34323b6 | 6 | select CRC32 |
f67cf491 MW |
7 | select CRYPTO |
8 | select CRYPTO_HASH | |
e6b245cc | 9 | select NVMEM |
16603153 | 10 | help |
b7c408a5 GU |
11 | USB4 and Thunderbolt driver. USB4 is the public specification |
12 | based on the Thunderbolt 3 protocol. This driver is required if | |
690ac0d2 MW |
13 | you want to hotplug Thunderbolt and USB4 compliant devices on |
14 | Apple hardware or on PCs with Intel Falcon Ridge or newer. | |
16603153 AN |
15 | |
16 | To compile this driver a module, choose M here. The module will be | |
17 | called thunderbolt. | |
54509f50 | 18 | |
8eabfca5 MW |
19 | if USB4 |
20 | ||
54e41810 GF |
21 | config USB4_DEBUGFS_WRITE |
22 | bool "Enable write by debugfs to configuration spaces (DANGEROUS)" | |
54e41810 GF |
23 | help |
24 | Enables writing to device configuration registers through | |
25 | debugfs interface. | |
26 | ||
27 | Only enable this if you know what you are doing! Never enable | |
28 | this for production systems or distro kernels. | |
29 | ||
d0f1e0c2 MW |
30 | config USB4_DEBUGFS_MARGINING |
31 | bool "Expose receiver lane margining operations under USB4 ports (DANGEROUS)" | |
32 | depends on DEBUG_FS | |
33 | depends on USB4_DEBUGFS_WRITE | |
34 | help | |
35 | Enables hardware and software based receiver lane margining support | |
36 | under each USB4 port. Used for electrical quality and robustness | |
37 | validation during manufacturing. Should not be enabled by distro | |
38 | kernels. | |
39 | ||
54509f50 | 40 | config USB4_KUNIT_TEST |
635dcd16 | 41 | bool "KUnit tests" if !KUNIT_ALL_TESTS |
793f55b2 | 42 | depends on USB4 && KUNIT=y |
635dcd16 | 43 | default KUNIT_ALL_TESTS |
8eabfca5 | 44 | |
edc0f494 IH |
45 | config USB4_DMA_TEST |
46 | tristate "DMA traffic test driver" | |
47 | depends on DEBUG_FS | |
48 | help | |
49 | This allows sending and receiving DMA traffic through loopback | |
50 | connection. Loopback connection can be done by either special | |
51 | dongle that has TX/RX lines crossed, or by simply connecting a | |
52 | cable back to the host. Only enable this if you know what you | |
53 | are doing. Normal users and distro kernels should say N here. | |
54 | ||
55 | To compile this driver a module, choose M here. The module will be | |
56 | called thunderbolt_dma_test. | |
57 | ||
8eabfca5 | 58 | endif # USB4 |