Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # USB Dual Role (OTG-ready) Controller Drivers
  4. # for silicon based on Mentor Graphics INVENTRA designs
  5. #
  6. # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
  7. config USB_MUSB_HDRC
  8. tristate 'Inventra Highspeed Dual Role Controller'
  9. depends on (USB || USB_GADGET)
  10. depends on HAS_IOMEM
  11. help
  12. Say Y here if your system has a dual role high speed USB
  13. controller based on the Mentor Graphics silicon IP. Then
  14. configure options to match your silicon and the board
  15. it's being used with, including the USB peripheral role,
  16. or the USB host role, or both.
  17. Texas Instruments families using this IP include DaVinci
  18. (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
  19. Allwinner SoCs using this IP include A10, A13, A20, ...
  20. If you do not know what this is, please say N.
  21. To compile this driver as a module, choose M here; the
  22. module will be called "musb-hdrc".
  23. if USB_MUSB_HDRC
  24. choice
  25. bool "MUSB Mode Selection"
  26. default USB_MUSB_DUAL_ROLE if (USB && USB_GADGET)
  27. default USB_MUSB_HOST if (USB && !USB_GADGET)
  28. default USB_MUSB_GADGET if (!USB && USB_GADGET)
  29. config USB_MUSB_HOST
  30. bool "Host only mode"
  31. depends on USB=y || USB=USB_MUSB_HDRC
  32. help
  33. Select this when you want to use MUSB in host mode only,
  34. thereby the gadget feature will be regressed.
  35. config USB_MUSB_GADGET
  36. bool "Gadget only mode"
  37. depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
  38. depends on HAS_DMA
  39. help
  40. Select this when you want to use MUSB in gadget mode only,
  41. thereby the host feature will be regressed.
  42. config USB_MUSB_DUAL_ROLE
  43. bool "Dual Role mode"
  44. depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
  45. depends on HAS_DMA
  46. help
  47. This is the default mode of working of MUSB controller where
  48. both host and gadget features are enabled.
  49. endchoice
  50. comment "Platform Glue Layer"
  51. config USB_MUSB_SUNXI
  52. tristate "Allwinner (sunxi)"
  53. depends on ARCH_SUNXI
  54. depends on NOP_USB_XCEIV
  55. depends on PHY_SUN4I_USB
  56. depends on EXTCON
  57. select GENERIC_PHY
  58. select SUNXI_SRAM
  59. config USB_MUSB_DAVINCI
  60. tristate "DaVinci"
  61. depends on ARCH_DAVINCI_DMx
  62. depends on NOP_USB_XCEIV
  63. depends on BROKEN
  64. config USB_MUSB_DA8XX
  65. tristate "DA8xx/OMAP-L1x"
  66. depends on ARCH_DAVINCI_DA8XX
  67. depends on NOP_USB_XCEIV
  68. select PHY_DA8XX_USB
  69. config USB_MUSB_TUSB6010
  70. tristate "TUSB6010"
  71. depends on HAS_IOMEM
  72. depends on ARCH_OMAP2PLUS || COMPILE_TEST
  73. depends on NOP_USB_XCEIV!=m || USB_MUSB_HDRC=m
  74. config USB_MUSB_OMAP2PLUS
  75. tristate "OMAP2430 and onwards"
  76. depends on ARCH_OMAP2PLUS && USB
  77. depends on OMAP_CONTROL_PHY || !OMAP_CONTROL_PHY
  78. select GENERIC_PHY
  79. config USB_MUSB_AM35X
  80. tristate "AM35x"
  81. depends on ARCH_OMAP
  82. depends on NOP_USB_XCEIV
  83. config USB_MUSB_DSPS
  84. tristate "TI DSPS platforms"
  85. depends on ARCH_OMAP2PLUS || COMPILE_TEST
  86. depends on OF_IRQ
  87. config USB_MUSB_UX500
  88. tristate "Ux500 platforms"
  89. depends on ARCH_U8500 || COMPILE_TEST
  90. config USB_MUSB_JZ4740
  91. tristate "JZ4740"
  92. depends on OF
  93. depends on MIPS || COMPILE_TEST
  94. depends on USB_MUSB_GADGET
  95. depends on USB=n || USB_OTG_DISABLE_EXTERNAL_HUB
  96. select USB_ROLE_SWITCH
  97. config USB_MUSB_MEDIATEK
  98. tristate "MediaTek platforms"
  99. depends on ARCH_MEDIATEK || COMPILE_TEST
  100. depends on NOP_USB_XCEIV
  101. select GENERIC_PHY
  102. select USB_ROLE_SWITCH
  103. config USB_MUSB_POLARFIRE_SOC
  104. tristate "Microchip PolarFire SoC platforms"
  105. depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
  106. depends on NOP_USB_XCEIV
  107. select USB_MUSB_DUAL_ROLE
  108. help
  109. Say Y here to enable support for USB on Microchip's PolarFire SoC.
  110. This support is also available as a module. If so, the module
  111. will be called mpfs.
  112. comment "MUSB DMA mode"
  113. config MUSB_PIO_ONLY
  114. bool 'Disable DMA (always use PIO)'
  115. help
  116. All data is copied between memory and FIFO by the CPU.
  117. DMA controllers are ignored.
  118. Do not choose this unless DMA support for your SOC or board
  119. is unavailable (or unstable). When DMA is enabled at compile time,
  120. you can still disable it at run time using the "use_dma=n" module
  121. parameter.
  122. if !MUSB_PIO_ONLY
  123. config USB_UX500_DMA
  124. bool 'ST Ericsson Ux500'
  125. depends on USB_MUSB_UX500
  126. help
  127. Enable DMA transfers on UX500 platforms.
  128. config USB_INVENTRA_DMA
  129. bool 'Inventra'
  130. depends on USB_MUSB_OMAP2PLUS || USB_MUSB_MEDIATEK || USB_MUSB_JZ4740 || USB_MUSB_POLARFIRE_SOC
  131. help
  132. Enable DMA transfers using Mentor's engine.
  133. config USB_TI_CPPI_DMA
  134. bool 'TI CPPI (Davinci)'
  135. depends on USB_MUSB_DAVINCI
  136. help
  137. Enable DMA transfers when TI CPPI DMA is available.
  138. config USB_TI_CPPI41_DMA
  139. bool 'TI CPPI 4.1'
  140. depends on (ARCH_OMAP || ARCH_DAVINCI_DA8XX) && DMADEVICES
  141. select TI_CPPI41
  142. config USB_TUSB_OMAP_DMA
  143. bool 'TUSB 6010'
  144. depends on USB_MUSB_TUSB6010 = USB_MUSB_HDRC # both built-in or both modules
  145. depends on ARCH_OMAP
  146. help
  147. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  148. endif # !MUSB_PIO_ONLY
  149. endif # USB_MUSB_HDRC