Kconfig 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # For MTK USB3.0 IP
  2. config USB_MTU3
  3. tristate "MediaTek USB3 Dual Role controller"
  4. depends on EXTCON && (USB || USB_GADGET) && HAS_DMA
  5. depends on ARCH_MEDIATEK || COMPILE_TEST
  6. select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD
  7. help
  8. Say Y or M here if your system runs on MediaTek SoCs with
  9. Dual Role SuperSpeed USB controller. You can select usb
  10. mode as peripheral role or host role, or both.
  11. If you don't know what this is, please say N.
  12. Choose M here to compile this driver as a module, and it
  13. will be called mtu3.ko.
  14. if USB_MTU3
  15. choice
  16. bool "MTU3 Mode Selection"
  17. default USB_MTU3_DUAL_ROLE if (USB && USB_GADGET)
  18. default USB_MTU3_HOST if (USB && !USB_GADGET)
  19. default USB_MTU3_GADGET if (!USB && USB_GADGET)
  20. config USB_MTU3_HOST
  21. bool "Host only mode"
  22. depends on USB=y || USB=USB_MTU3
  23. help
  24. Select this when you want to use MTU3 in host mode only,
  25. thereby the gadget feature will be regressed.
  26. config USB_MTU3_GADGET
  27. bool "Gadget only mode"
  28. depends on USB_GADGET=y || USB_GADGET=USB_MTU3
  29. help
  30. Select this when you want to use MTU3 in gadget mode only,
  31. thereby the host feature will be regressed.
  32. config USB_MTU3_DUAL_ROLE
  33. bool "Dual Role mode"
  34. depends on ((USB=y || USB=USB_MTU3) && (USB_GADGET=y || USB_GADGET=USB_MTU3))
  35. help
  36. This is the default mode of working of MTU3 controller where
  37. both host and gadget features are enabled.
  38. endchoice
  39. config USB_MTU3_DEBUG
  40. bool "Enable Debugging Messages"
  41. help
  42. Say Y here to enable debugging messages in the MTU3 Driver.
  43. endif