Kconfig 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig USB4
  3. tristate "Unified support for USB4 and Thunderbolt"
  4. depends on PCI
  5. select APPLE_PROPERTIES if EFI_STUB && X86
  6. select CRC32
  7. select CRYPTO
  8. select CRYPTO_HASH
  9. select NVMEM
  10. help
  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.
  15. To compile this driver a module, choose M here. The module will be
  16. called thunderbolt.
  17. if USB4
  18. config USB4_DEBUGFS_WRITE
  19. bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
  20. help
  21. Enables writing to device configuration registers through
  22. debugfs interface.
  23. Only enable this if you know what you are doing! Never enable
  24. this for production systems or distro kernels.
  25. config USB4_DEBUGFS_MARGINING
  26. bool "Expose receiver lane margining operations under USB4 ports (DANGEROUS)"
  27. depends on DEBUG_FS
  28. depends on USB4_DEBUGFS_WRITE
  29. help
  30. Enables hardware and software based receiver lane margining support
  31. under each USB4 port. Used for electrical quality and robustness
  32. validation during manufacturing. Should not be enabled by distro
  33. kernels.
  34. config USB4_KUNIT_TEST
  35. bool "KUnit tests" if !KUNIT_ALL_TESTS
  36. depends on USB4 && KUNIT=y
  37. default KUNIT_ALL_TESTS
  38. config USB4_DMA_TEST
  39. tristate "DMA traffic test driver"
  40. depends on DEBUG_FS
  41. help
  42. This allows sending and receiving DMA traffic through loopback
  43. connection. Loopback connection can be done by either special
  44. dongle that has TX/RX lines crossed, or by simply connecting a
  45. cable back to the host. Only enable this if you know what you
  46. are doing. Normal users and distro kernels should say N here.
  47. To compile this driver a module, choose M here. The module will be
  48. called thunderbolt_dma_test.
  49. endif # USB4