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