Kconfig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. You can use tools such as Thunderbolt/USB4
  23. debugging tools to access these registers. For more
  24. information see:
  25. https://github.com/intel/tbtools
  26. Only enable this if you know what you are doing! Never enable
  27. this for production systems or distro kernels.
  28. config USB4_DEBUGFS_MARGINING
  29. bool "Expose receiver lane margining operations under USB4 ports and retimers (DANGEROUS)"
  30. depends on DEBUG_FS
  31. depends on USB4_DEBUGFS_WRITE
  32. help
  33. Enables hardware and software based receiver lane margining
  34. support under each USB4 port and retimer, including retimers
  35. on the other side of the cable. Used for electrical quality
  36. and robustness validation during manufacturing. Should not be
  37. enabled by distro kernels.
  38. config USB4_KUNIT_TEST
  39. bool "KUnit tests" if !KUNIT_ALL_TESTS
  40. depends on USB4 && KUNIT=y
  41. default KUNIT_ALL_TESTS
  42. config USB4_DMA_TEST
  43. tristate "DMA traffic test driver"
  44. depends on DEBUG_FS
  45. help
  46. This allows sending and receiving DMA traffic through loopback
  47. connection. Loopback connection can be done by either special
  48. dongle that has TX/RX lines crossed, or by simply connecting a
  49. cable back to the host. Only enable this if you know what you
  50. are doing. Normal users and distro kernels should say N here.
  51. To compile this driver a module, choose M here. The module will be
  52. called thunderbolt_dma_test.
  53. endif # USB4