Kconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # SPDX-License-Identifier: GPL-2.0
  2. config USB_ISP1760
  3. tristate "NXP ISP 1760/1761/1763 support"
  4. depends on USB || USB_GADGET
  5. select REGMAP_MMIO
  6. help
  7. Say Y or M here if your system as an ISP1760/1763 USB host controller
  8. or an ISP1761 USB dual-role controller.
  9. This driver does not support isochronous transfers or OTG.
  10. This USB controller is usually attached to a non-DMA-Master
  11. capable bus. NXP's eval kit brings this chip on PCI card
  12. where the chip itself is behind a PLB to simulate such
  13. a bus.
  14. To compile this driver as a module, choose M here: the
  15. module will be called isp1760.
  16. config USB_ISP1760_HCD
  17. bool
  18. config USB_ISP1761_UDC
  19. bool
  20. if USB_ISP1760
  21. choice
  22. bool "ISP1760 Mode Selection"
  23. default USB_ISP1760_DUAL_ROLE if (USB && USB_GADGET)
  24. default USB_ISP1760_HOST_ROLE if (USB && !USB_GADGET)
  25. default USB_ISP1760_GADGET_ROLE if (!USB && USB_GADGET)
  26. config USB_ISP1760_HOST_ROLE
  27. bool "Host only mode"
  28. depends on USB=y || USB=USB_ISP1760
  29. select USB_ISP1760_HCD
  30. help
  31. Select this if you want to use the ISP1760 in host mode only. The
  32. gadget function will be disabled.
  33. config USB_ISP1760_GADGET_ROLE
  34. bool "Gadget only mode"
  35. depends on USB_GADGET=y || USB_GADGET=USB_ISP1760
  36. select USB_ISP1761_UDC
  37. help
  38. Select this if you want to use the ISP1760 in peripheral mode only.
  39. The host function will be disabled.
  40. config USB_ISP1760_DUAL_ROLE
  41. bool "Dual Role mode"
  42. depends on USB=y || USB=USB_ISP1760
  43. depends on USB_GADGET=y || USB_GADGET=USB_ISP1760
  44. select USB_ISP1760_HCD
  45. select USB_ISP1761_UDC
  46. help
  47. Select this if you want to use the ISP1760 in both host and
  48. peripheral modes.
  49. endchoice
  50. endif