Kconfig 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # For MTK USB3.0 IP
  4. config USB_MTU3
  5. bool "MediaTek USB3 Dual Role controller"
  6. depends on USB_XHCI_HCD || USB_GADGET
  7. depends on ARCH_MEDIATEK
  8. help
  9. Say Y 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.
  12. If you don't know what this is, please say N.
  13. if USB_MTU3
  14. choice
  15. bool "MTU3 Mode Selection"
  16. default USB_MTU3_GADGET if USB_GADGET
  17. default USB_MTU3_HOST if (USB_HOST && !USB_GADGET)
  18. config USB_MTU3_HOST
  19. bool "Host only mode"
  20. depends on USB_XHCI_HCD
  21. help
  22. Select this when you want to use MTU3 in host mode only,
  23. thereby the gadget feature will be regressed.
  24. config USB_MTU3_GADGET
  25. bool "Gadget only mode"
  26. depends on USB_GADGET
  27. select USB_GADGET_DUALSPEED
  28. help
  29. Select this when you want to use MTU3 in gadget mode only,
  30. thereby the host feature will be regressed.
  31. endchoice
  32. config USB_MTU3_DEBUG
  33. bool "Enable Debugging Messages"
  34. help
  35. Say Y here to enable debugging messages in the MTU3 Driver.
  36. endif