Kconfig 1.5 KB

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