xref: /OK3568_Linux_fs/kernel/drivers/thunderbolt/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunmenuconfig USB4
3*4882a593Smuzhiyun	tristate "Unified support for USB4 and Thunderbolt"
4*4882a593Smuzhiyun	depends on PCI
5*4882a593Smuzhiyun	select APPLE_PROPERTIES if EFI_STUB && X86
6*4882a593Smuzhiyun	select CRC32
7*4882a593Smuzhiyun	select CRYPTO
8*4882a593Smuzhiyun	select CRYPTO_HASH
9*4882a593Smuzhiyun	select NVMEM
10*4882a593Smuzhiyun	help
11*4882a593Smuzhiyun	  USB4 and Thunderbolt driver. USB4 is the public specification
12*4882a593Smuzhiyun	  based on the Thunderbolt 3 protocol. This driver is required if
13*4882a593Smuzhiyun	  you want to hotplug Thunderbolt and USB4 compliant devices on
14*4882a593Smuzhiyun	  Apple hardware or on PCs with Intel Falcon Ridge or newer.
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	  To compile this driver a module, choose M here. The module will be
17*4882a593Smuzhiyun	  called thunderbolt.
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunif USB4
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunconfig USB4_DEBUGFS_WRITE
22*4882a593Smuzhiyun	bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
23*4882a593Smuzhiyun	help
24*4882a593Smuzhiyun	  Enables writing to device configuration registers through
25*4882a593Smuzhiyun	  debugfs interface.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	  Only enable this if you know what you are doing! Never enable
28*4882a593Smuzhiyun	  this for production systems or distro kernels.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunconfig USB4_KUNIT_TEST
31*4882a593Smuzhiyun	bool "KUnit tests"
32*4882a593Smuzhiyun	depends on KUNIT=y
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunendif # USB4
35