Kconfig 5.3 KB

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