Kconfig 1.6 KB

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