Kconfig 4.53 KB
Newer Older
1 2 3 4 5 6 7
#
# USB Dual Role (OTG-ready) Controller Drivers
# for silicon based on Mentor Graphics INVENTRA designs
#

# (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
config USB_MUSB_HDRC
8
	tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, AW, ...)'
9
	depends on (USB || USB_GADGET)
10
	depends on HAS_IOMEM
11 12 13 14 15 16 17
	help
	  Say Y here if your system has a dual role high speed USB
	  controller based on the Mentor Graphics silicon IP.  Then
	  configure options to match your silicon and the board
	  it's being used with, including the USB peripheral role,
	  or the USB host role, or both.

18
	  Texas Instruments families using this IP include DaVinci
19
	  (35x, 644x ...), OMAP 243x, OMAP 3, and TUSB 6010.
20

21 22 23
	  Analog Devices parts using this IP include Blackfin BF54x,
	  BF525 and BF527.

24 25
	  Allwinner SoCs using this IP include A10, A13, A20, ...

26 27
	  If you do not know what this is, please say N.

28 29
	  To compile this driver as a module, choose M here; the
	  module will be called "musb-hdrc".
30

31 32
if USB_MUSB_HDRC

33 34 35 36 37 38 39 40
choice
	bool "MUSB Mode Selection"
	default USB_MUSB_DUAL_ROLE if (USB && USB_GADGET)
	default USB_MUSB_HOST if (USB && !USB_GADGET)
	default USB_MUSB_GADGET if (!USB && USB_GADGET)

config USB_MUSB_HOST
	bool "Host only mode"
41
	depends on USB=y || USB=USB_MUSB_HDRC
42 43 44 45 46 47
	help
	  Select this when you want to use MUSB in host mode only,
	  thereby the gadget feature will be regressed.

config USB_MUSB_GADGET
	bool "Gadget only mode"
48
	depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
49
	depends on HAS_DMA
50 51 52 53 54 55
	help
	  Select this when you want to use MUSB in gadget mode only,
	  thereby the host feature will be regressed.

config USB_MUSB_DUAL_ROLE
	bool "Dual Role mode"
56
	depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
57
	depends on HAS_DMA
58 59 60 61 62 63
	help
	  This is the default mode of working of MUSB controller where
	  both host and gadget features are enabled.

endchoice

64
comment "Platform Glue Layer"
65

66 67 68 69 70 71 72 73 74
config USB_MUSB_SUNXI
	tristate "Allwinner (sunxi)"
	depends on ARCH_SUNXI
	depends on NOP_USB_XCEIV
	depends on PHY_SUN4I_USB
	depends on EXTCON
	depends on GENERIC_PHY
	select SUNXI_SRAM

75
config USB_MUSB_DAVINCI
76
	tristate "DaVinci"
77
	depends on ARCH_DAVINCI_DMx
78
	depends on NOP_USB_XCEIV
79
	depends on BROKEN
80

81
config USB_MUSB_DA8XX
82
	tristate "DA8xx/OMAP-L1x"
83
	depends on ARCH_DAVINCI_DA8XX
84
	depends on NOP_USB_XCEIV
85
	select PHY_DA8XX_USB
86

87
config USB_MUSB_TUSB6010
88
	tristate "TUSB6010"
89
	depends on HAS_IOMEM
90
	depends on (ARCH_OMAP2PLUS || COMPILE_TEST) && !BLACKFIN
91
	depends on NOP_USB_XCEIV = USB_MUSB_HDRC # both built-in or both modules
92

93
config USB_MUSB_OMAP2PLUS
94
	tristate "OMAP2430 and onwards"
95 96
	depends on ARCH_OMAP2PLUS && USB
	depends on OMAP_CONTROL_PHY || !OMAP_CONTROL_PHY
97
	select GENERIC_PHY
98

99
config USB_MUSB_AM35X
100
	tristate "AM35x"
101
	depends on ARCH_OMAP
102
	depends on NOP_USB_XCEIV
103

104 105
config USB_MUSB_DSPS
	tristate "TI DSPS platforms"
106
	select USB_MUSB_AM335X_CHILD
107
	depends on ARCH_OMAP2PLUS || COMPILE_TEST
108
	depends on OF_IRQ
109

110
config USB_MUSB_BLACKFIN
111
	tristate "Blackfin"
112
	depends on (BF54x && !BF544) || (BF52x && ! BF522 && !BF523)
113
	depends on NOP_USB_XCEIV
114

115
config USB_MUSB_UX500
116
	tristate "Ux500 platforms"
117
	depends on ARCH_U8500 || COMPILE_TEST
118

119 120
config USB_MUSB_JZ4740
	tristate "JZ4740"
121
	depends on NOP_USB_XCEIV
122 123 124 125
	depends on MACH_JZ4740 || COMPILE_TEST
	depends on USB_MUSB_GADGET
	depends on USB_OTG_BLACKLIST_HUB

126 127 128
config USB_MUSB_AM335X_CHILD
	tristate

129 130 131 132
comment "MUSB DMA mode"

config MUSB_PIO_ONLY
	bool 'Disable DMA (always use PIO)'
133
	help
134 135 136 137 138 139 140 141 142
	  All data is copied between memory and FIFO by the CPU.
	  DMA controllers are ignored.

	  Do not choose this unless DMA support for your SOC or board
	  is unavailable (or unstable).  When DMA is enabled at compile time,
	  you can still disable it at run time using the "use_dma=n" module
	  parameter.

if !MUSB_PIO_ONLY
143

144
config USB_UX500_DMA
145
	bool 'ST Ericsson Ux500'
146
	depends on USB_MUSB_UX500
147 148 149
	help
	  Enable DMA transfers on UX500 platforms.

150
config USB_INVENTRA_DMA
151 152
	bool 'Inventra'
	depends on USB_MUSB_OMAP2PLUS || USB_MUSB_BLACKFIN
153 154 155 156
	help
	  Enable DMA transfers using Mentor's engine.

config USB_TI_CPPI_DMA
157 158
	bool 'TI CPPI (Davinci)'
	depends on USB_MUSB_DAVINCI
159 160 161
	help
	  Enable DMA transfers when TI CPPI DMA is available.

162
config USB_TI_CPPI41_DMA
163 164
	bool 'TI CPPI 4.1'
	depends on (ARCH_OMAP || ARCH_DAVINCI_DA8XX) && DMADEVICES
165
	select TI_CPPI41
166

167
config USB_TUSB_OMAP_DMA
168
	bool 'TUSB 6010'
169
	depends on USB_MUSB_TUSB6010 = USB_MUSB_HDRC # both built-in or both modules
170 171 172 173
	depends on ARCH_OMAP
	help
	  Enable DMA transfers on TUSB 6010 when OMAP DMA is available.

174
endif # !MUSB_PIO_ONLY
175 176

endif # USB_MUSB_HDRC