Kconfig 4.3 KB

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