Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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) && HAVE_CLK
  10. depends on !SUPERH
  11. select TWL4030_USB if MACH_OMAP_3430SDP
  12. tristate 'Inventra Highspeed Dual Role Controller (TI, ...)'
  13. help
  14. Say Y here if your system has a dual role high speed USB
  15. controller based on the Mentor Graphics silicon IP. Then
  16. configure options to match your silicon and the board
  17. it's being used with, including the USB peripheral role,
  18. or the USB host role, or both.
  19. Texas Instruments parts using this IP include DaVinci 644x,
  20. OMAP 243x, OMAP 343x, and TUSB 6010.
  21. If you do not know what this is, please say N.
  22. To compile this driver as a module, choose M here; the
  23. module will be called "musb_hdrc".
  24. config USB_MUSB_SOC
  25. boolean
  26. depends on USB_MUSB_HDRC
  27. default y if ARCH_DAVINCI
  28. default y if ARCH_OMAP2430
  29. default y if ARCH_OMAP34XX
  30. help
  31. Use a static <asm/arch/hdrc_cnf.h> file to describe how the
  32. controller is configured (endpoints, mechanisms, etc) on the
  33. current iteration of a given system-on-chip.
  34. comment "DaVinci 644x USB support"
  35. depends on USB_MUSB_HDRC && ARCH_DAVINCI
  36. comment "OMAP 243x high speed USB support"
  37. depends on USB_MUSB_HDRC && ARCH_OMAP2430
  38. comment "OMAP 343x high speed USB support"
  39. depends on USB_MUSB_HDRC && ARCH_OMAP34XX
  40. config USB_TUSB6010
  41. boolean "TUSB 6010 support"
  42. depends on USB_MUSB_HDRC && !USB_MUSB_SOC
  43. default y
  44. help
  45. The TUSB 6010 chip, from Texas Instruments, connects a discrete
  46. HDRC core using a 16-bit parallel bus (NOR flash style) or VLYNQ
  47. (a high speed serial link). It can use system-specific external
  48. DMA controllers.
  49. choice
  50. prompt "Driver Mode"
  51. depends on USB_MUSB_HDRC
  52. help
  53. Dual-Role devices can support both host and peripheral roles,
  54. as well as a the special "OTG Device" role which can switch
  55. between both roles as needed.
  56. # use USB_MUSB_HDRC_HCD not USB_MUSB_HOST to #ifdef host side support;
  57. # OTG needs both roles, not just USB_MUSB_HOST.
  58. config USB_MUSB_HOST
  59. depends on USB
  60. bool "USB Host"
  61. help
  62. Say Y here if your system supports the USB host role.
  63. If it has a USB "A" (rectangular), "Mini-A" (uncommon),
  64. or "Mini-AB" connector, it supports the host role.
  65. (With a "Mini-AB" connector, you should enable USB OTG.)
  66. # use USB_GADGET_MUSB_HDRC not USB_MUSB_PERIPHERAL to #ifdef peripheral
  67. # side support ... OTG needs both roles
  68. config USB_MUSB_PERIPHERAL
  69. depends on USB_GADGET
  70. bool "USB Peripheral (gadget stack)"
  71. select USB_GADGET_MUSB_HDRC
  72. help
  73. Say Y here if your system supports the USB peripheral role.
  74. If it has a USB "B" (squarish), "Mini-B", or "Mini-AB"
  75. connector, it supports the peripheral role.
  76. (With a "Mini-AB" connector, you should enable USB OTG.)
  77. config USB_MUSB_OTG
  78. depends on USB && USB_GADGET && PM && EXPERIMENTAL
  79. bool "Both host and peripheral: USB OTG (On The Go) Device"
  80. select USB_GADGET_MUSB_HDRC
  81. select USB_OTG
  82. help
  83. The most notable feature of USB OTG is support for a
  84. "Dual-Role" device, which can act as either a device
  85. or a host. The initial role choice can be changed
  86. later, when two dual-role devices talk to each other.
  87. At this writing, the OTG support in this driver is incomplete,
  88. omitting the mandatory HNP or SRP protocols. However, some
  89. of the cable based role switching works. (That is, grounding
  90. the ID pin switches the controller to host mode, while leaving
  91. it floating leaves it in peripheral mode.)
  92. Select this if your system has a Mini-AB connector, or
  93. to simplify certain kinds of configuration.
  94. To implement your OTG Targeted Peripherals List (TPL), enable
  95. USB_OTG_WHITELIST and update "drivers/usb/core/otg_whitelist.h"
  96. to match your requirements.
  97. endchoice
  98. # enable peripheral support (including with OTG)
  99. config USB_GADGET_MUSB_HDRC
  100. bool
  101. depends on USB_MUSB_HDRC && (USB_MUSB_PERIPHERAL || USB_MUSB_OTG)
  102. # default y
  103. # select USB_GADGET_DUALSPEED
  104. # select USB_GADGET_SELECTED
  105. # enables host support (including with OTG)
  106. config USB_MUSB_HDRC_HCD
  107. bool
  108. depends on USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG)
  109. select USB_OTG if USB_GADGET_MUSB_HDRC
  110. default y
  111. config MUSB_PIO_ONLY
  112. bool 'Disable DMA (always use PIO)'
  113. depends on USB_MUSB_HDRC
  114. default y if USB_TUSB6010
  115. help
  116. All data is copied between memory and FIFO by the CPU.
  117. DMA controllers are ignored.
  118. Do not select 'n' here 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. config USB_INVENTRA_DMA
  123. bool
  124. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  125. default ARCH_OMAP2430 || ARCH_OMAP34XX
  126. help
  127. Enable DMA transfers using Mentor's engine.
  128. config USB_TI_CPPI_DMA
  129. bool
  130. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  131. default ARCH_DAVINCI
  132. help
  133. Enable DMA transfers when TI CPPI DMA is available.
  134. config USB_TUSB_OMAP_DMA
  135. bool
  136. depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
  137. depends on USB_TUSB6010
  138. depends on ARCH_OMAP
  139. default y
  140. help
  141. Enable DMA transfers on TUSB 6010 when OMAP DMA is available.
  142. config USB_MUSB_DEBUG
  143. depends on USB_MUSB_HDRC
  144. bool "Enable debugging messages"
  145. default n
  146. help
  147. This enables musb debugging. To set the logging level use the debug
  148. module parameter. Starting at level 3, per-transfer (urb, usb_request,
  149. packet, or dma transfer) tracing may kick in.