Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. #
  2. # USB Dual Role (OTG-ready) Controller Drivers
  3. # for silicon based on Mentor Graphics INVENTRA designs
  4. #
  5. comment "Enable Host or Gadget support to see Inventra options"
  6. depends on !USB && USB_GADGET=n
  7. # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
  8. config USB_MUSB_HDRC
  9. depends on (USB || USB_GADGET)
  10. depends on (ARM || (BF54x && !BF544) || (BF52x && !BF522 && !BF523))
  11. select NOP_USB_XCEIV if (ARCH_DAVINCI || MACH_OMAP3EVM || BLACKFIN)
  12. select TWL4030_USB if MACH_OMAP_3430SDP
  13. select USB_OTG_UTILS
  14. tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
  15. help
  16. Say Y here if your system has a dual role high speed USB
  17. controller based on the Mentor Graphics silicon IP. Then
  18. configure options to match your silicon and the board
  19. it's being used with, including the USB peripheral role,
  20. or the USB host role, or both.
  21. Texas Instruments familiies using this IP include DaVinci
  22. (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
  23. Analog Devices parts using this IP include Blackfin BF54x,
  24. BF525 and BF527.
  25. If you do not know what this is, please say N.
  26. To compile this driver as a module, choose M here; the
  27. module will be called "musb_hdrc".
  28. config USB_MUSB_SOC
  29. boolean
  30. depends on USB_MUSB_HDRC
  31. default y if ARCH_DAVINCI
  32. default y if ARCH_OMAP2430
  33. default y if ARCH_OMAP3
  34. default y if ARCH_OMAP4
  35. default y if (BF54x && !BF544)
  36. default y if (BF52x && !BF522 && !BF523)
  37. comment "DaVinci 35x and 644x USB support"
  38. depends on USB_MUSB_HDRC && ARCH_DAVINCI_DMx
  39. comment "DA8xx/OMAP-L1x USB support"
  40. depends on USB_MUSB_HDRC && ARCH_DAVINCI_DA8XX
  41. comment "OMAP 243x high speed USB support"
  42. depends on USB_MUSB_HDRC && ARCH_OMAP2430
  43. comment "OMAP 343x high speed USB support"
  44. depends on USB_MUSB_HDRC && ARCH_OMAP3
  45. comment "OMAP 44xx high speed USB support"
  46. depends on USB_MUSB_HDRC && ARCH_OMAP4
  47. comment "Blackfin high speed USB Support"
  48. depends on USB_MUSB_HDRC && ((BF54x && !BF544) || (BF52x && !BF522 && !BF523))
  49. config USB_MUSB_AM35X
  50. bool
  51. depends on USB_MUSB_HDRC && !ARCH_OMAP2430 && !ARCH_OMAP4
  52. select NOP_USB_XCEIV
  53. default MACH_OMAP3517EVM
  54. help
  55. Select this option if your platform is based on AM35x. As
  56. AM35x has an updated MUSB with CPPI4.1 DMA so this config
  57. is introduced to differentiate musb ip between OMAP3x and
  58. AM35x platforms.
  59. config USB_TUSB6010
  60. boolean "TUSB 6010 support"
  61. depends on USB_MUSB_HDRC && !USB_MUSB_SOC
  62. select NOP_USB_XCEIV
  63. default y
  64. help
  65. The TUSB 6010 chip, from Texas Instruments, connects a discrete
  66. HDRC core using a 16-bit parallel bus (NOR flash style) or VLYNQ
  67. (a high speed serial link). It can use system-specific external
  68. DMA controllers.
  69. choice
  70. prompt "Driver Mode"
  71. depends on USB_MUSB_HDRC
  72. help
  73. Dual-Role devices can support both host and peripheral roles,
  74. as well as a the special "OTG Device" role which can switch
  75. between both roles as needed.
  76. # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support;
  77. # OTG needs both roles, not just USB_MUSB_HOST.
  78. config USB_MUSB_HOST
  79. depends on USB
  80. bool "USB Host"
  81. help
  82. Say Y here if your system supports the USB host role.
  83. If it has a USB "A" (rectangular), "Mini-A" (uncommon),
  84. or "Mini-AB" connector, it supports the host role.
  85. (With a "Mini-AB" connector, you should enable USB OTG.)
  86. # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral
  87. # side support ... OTG needs both roles
  88. config USB_MUSB_PERIPHERAL
  89. depends on USB_GADGET
  90. bool "USB Peripheral (gadget stack)"
  91. select USB_GADGET_MUSB_HDRC
  92. help
  93. Say Y here if your system supports the USB peripheral role.
  94. If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
  95. connector, it supports the peripheral role.
  96. (With a "Mini-AB" connector, you should enable USB OTG.)
  97. config USB_MUSB_OTG
  98. depends on USB && USB_GADGET && PM && EXPERIMENTAL
  99. bool "Both host and peripheral: USB OTG (On The Go) Device"
  100. select USB_GADGET_MUSB_HDRC
  101. select USB_OTG
  102. help
  103. The most notable feature of USB OTG is support for a
  104. "Dual-Role" device, which can act as either a device
  105. or a host. The initial role choice can be changed
  106. later, when two dual-role devices talk to each other.
  107. At this writing, the OTG support in this driver is incomplete,
  108. omitting the mandatory HNP or SRP protocols. However, some
  109. of the cable based role switching works. (That is, grounding
  110. the ID pin switches the controller to host mode, while leaving
  111. it floating leaves it in peripheral mode.)
  112. Select this if your system has a Mini-AB connector, or
  113. to simplify certain kinds of configuration.
  114. To implement your OTG Targeted Peripherals List (TPL), enable
  115. USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h"
  116. to match your requirements.
  117. endchoice
  118. # enable peripheral support (including with OTG)
  119. config USB_GADGET_MUSB_HDRC
  120. bool
  121. depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG)
  122. # default y
  123. # select USB_GADGET_DUALSPEED
  124. # select USB_GADGET_SELECTED
  125. # enables host support (including with OTG)
  126. config USB_MUSB_HDRC_HCD
  127. bool
  128. depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG)
  129. select USB_OTG if USB_GADGET_MUSB_HDRC
  130. default y
  131. config MUSB_PIO_ONLY
  132. bool 'Disable DMA (always use PIO)'
  133. depends on USB_MUSB_HDRC
  134. default USB_TUSB6010 || ARCH_DAVINCI_DA8XX || USB_MUSB_AM35X
  135. help
  136. All data is copied between memory and FIFO by the CPU.
  137. DMA controllers are ignored.
  138. Do not select 'n' here unless DMA support for your SOC or board
  139. is unavailable (or unstable). When DMA is enabled at compile time,
  140. you can still disable it at run time using the "use_dma=n" module
  141. parameter.
  142. config USB_INVENTRA_DMA
  143. bool
  144. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  145. default ARCH_OMAP2430 || ARCH_OMAP3 || BLACKFIN || ARCH_OMAP4
  146. help
  147. Enable DMA transfers using Mentor's engine.
  148. config USB_TI_CPPI_DMA
  149. bool
  150. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  151. default ARCH_DAVINCI
  152. help
  153. Enable DMA transfers when TI CPPI DMA is available.
  154. config USB_TUSB_OMAP_DMA
  155. bool
  156. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  157. depends on USB_TUSB6010
  158. depends on ARCH_OMAP
  159. default y
  160. help
  161. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  162. config USB_MUSB_DEBUG
  163. depends on USB_MUSB_HDRC
  164. bool "Enable debugging messages"
  165. default n
  166. help
  167. This enables musb debugging. To set the logging level use the debug
  168. module parameter. Starting at level 3, per-transfer (urb, usb_request,
  169. packet, or dma transfer) tracing may kick in.