aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-04-09 08:29:27 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-09 19:57:46 -0400
commit42443dc44b0b0e29ea80d320882d4ab85f9340b3 (patch)
treed2629ac7febc6f9407cf7880baa7d6d52cd9da77 /drivers/usb/host
parent9296d94d83649e1c2f25c87dc4ead9c2ab073305 (diff)
USB: enclose EHCI HCD drivers within an if USB_EHCI_HCD block
Thist patch removes the depends on USB_EHCI_HCD that the various USB EHCI HCD drivers use and encloses every driver within an if USB_EHCI_HCD / endif block. The EHCI HCD platform and Octeon drivers have been moved around to remain enclosed within this block. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/Kconfig81
1 files changed, 42 insertions, 39 deletions
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 436b6828afdd..bc9123c0c685 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -93,14 +93,19 @@ config USB_EHCI_TT_NEWSCHED
93 93
94 If unsure, say Y. 94 If unsure, say Y.
95 95
96config USB_FSL_MPH_DR_OF
97 tristate
98
99if USB_EHCI_HCD
100
96config USB_EHCI_PCI 101config USB_EHCI_PCI
97 tristate 102 tristate
98 depends on USB_EHCI_HCD && PCI 103 depends on PCI
99 default y 104 default y
100 105
101config USB_EHCI_HCD_PMC_MSP 106config USB_EHCI_HCD_PMC_MSP
102 tristate "EHCI support for on-chip PMC MSP71xx USB controller" 107 tristate "EHCI support for on-chip PMC MSP71xx USB controller"
103 depends on USB_EHCI_HCD && MSP_HAS_USB 108 depends on MSP_HAS_USB
104 default n 109 default n
105 select USB_EHCI_BIG_ENDIAN_DESC 110 select USB_EHCI_BIG_ENDIAN_DESC
106 select USB_EHCI_BIG_ENDIAN_MMIO 111 select USB_EHCI_BIG_ENDIAN_MMIO
@@ -110,15 +115,13 @@ config USB_EHCI_HCD_PMC_MSP
110 115
111config USB_EHCI_BIG_ENDIAN_MMIO 116config USB_EHCI_BIG_ENDIAN_MMIO
112 bool 117 bool
113 depends on USB_EHCI_HCD
114 118
115config USB_EHCI_BIG_ENDIAN_DESC 119config USB_EHCI_BIG_ENDIAN_DESC
116 bool 120 bool
117 depends on USB_EHCI_HCD
118 121
119config XPS_USB_HCD_XILINX 122config XPS_USB_HCD_XILINX
120 bool "Use Xilinx usb host EHCI controller core" 123 bool "Use Xilinx usb host EHCI controller core"
121 depends on USB_EHCI_HCD && (PPC32 || MICROBLAZE) 124 depends on (PPC32 || MICROBLAZE)
122 select USB_EHCI_BIG_ENDIAN_DESC 125 select USB_EHCI_BIG_ENDIAN_DESC
123 select USB_EHCI_BIG_ENDIAN_MMIO 126 select USB_EHCI_BIG_ENDIAN_MMIO
124 ---help--- 127 ---help---
@@ -127,12 +130,9 @@ config XPS_USB_HCD_XILINX
127 support both high speed and full speed devices, or high speed 130 support both high speed and full speed devices, or high speed
128 devices only. 131 devices only.
129 132
130config USB_FSL_MPH_DR_OF
131 tristate
132
133config USB_EHCI_FSL 133config USB_EHCI_FSL
134 bool "Support for Freescale PPC on-chip EHCI USB controller" 134 bool "Support for Freescale PPC on-chip EHCI USB controller"
135 depends on USB_EHCI_HCD && FSL_SOC 135 depends on FSL_SOC
136 select USB_EHCI_ROOT_HUB_TT 136 select USB_EHCI_ROOT_HUB_TT
137 select USB_FSL_MPH_DR_OF if OF 137 select USB_FSL_MPH_DR_OF if OF
138 ---help--- 138 ---help---
@@ -140,14 +140,14 @@ config USB_EHCI_FSL
140 140
141config USB_EHCI_MXC 141config USB_EHCI_MXC
142 tristate "Support for Freescale i.MX on-chip EHCI USB controller" 142 tristate "Support for Freescale i.MX on-chip EHCI USB controller"
143 depends on USB_EHCI_HCD && ARCH_MXC 143 depends on ARCH_MXC
144 select USB_EHCI_ROOT_HUB_TT 144 select USB_EHCI_ROOT_HUB_TT
145 ---help--- 145 ---help---
146 Variation of ARC USB block used in some Freescale chips. 146 Variation of ARC USB block used in some Freescale chips.
147 147
148config USB_EHCI_HCD_OMAP 148config USB_EHCI_HCD_OMAP
149 tristate "EHCI support for OMAP3 and later chips" 149 tristate "EHCI support for OMAP3 and later chips"
150 depends on USB_EHCI_HCD && ARCH_OMAP 150 depends on ARCH_OMAP
151 select NOP_USB_XCEIV 151 select NOP_USB_XCEIV
152 default y 152 default y
153 ---help--- 153 ---help---
@@ -183,7 +183,7 @@ config USB_EHCI_HCD_AT91
183 183
184config USB_EHCI_MSM 184config USB_EHCI_MSM
185 tristate "Support for Qualcomm QSD/MSM on-chip EHCI USB controller" 185 tristate "Support for Qualcomm QSD/MSM on-chip EHCI USB controller"
186 depends on USB_EHCI_HCD && ARCH_MSM 186 depends on ARCH_MSM
187 select USB_EHCI_ROOT_HUB_TT 187 select USB_EHCI_ROOT_HUB_TT
188 select USB_MSM_OTG 188 select USB_MSM_OTG
189 ---help--- 189 ---help---
@@ -196,7 +196,7 @@ config USB_EHCI_MSM
196 196
197config USB_EHCI_TEGRA 197config USB_EHCI_TEGRA
198 boolean "NVIDIA Tegra HCD support" 198 boolean "NVIDIA Tegra HCD support"
199 depends on USB_EHCI_HCD && ARCH_TEGRA 199 depends on ARCH_TEGRA
200 select USB_EHCI_ROOT_HUB_TT 200 select USB_EHCI_ROOT_HUB_TT
201 select USB_PHY 201 select USB_PHY
202 help 202 help
@@ -205,7 +205,7 @@ config USB_EHCI_TEGRA
205 205
206config USB_EHCI_HCD_PPC_OF 206config USB_EHCI_HCD_PPC_OF
207 bool "EHCI support for PPC USB controller on OF platform bus" 207 bool "EHCI support for PPC USB controller on OF platform bus"
208 depends on USB_EHCI_HCD && PPC_OF 208 depends on PPC_OF
209 default y 209 default y
210 ---help--- 210 ---help---
211 Enables support for the USB controller present on the PowerPC 211 Enables support for the USB controller present on the PowerPC
@@ -213,21 +213,21 @@ config USB_EHCI_HCD_PPC_OF
213 213
214config USB_EHCI_SH 214config USB_EHCI_SH
215 bool "EHCI support for SuperH USB controller" 215 bool "EHCI support for SuperH USB controller"
216 depends on USB_EHCI_HCD && SUPERH 216 depends on SUPERH
217 ---help--- 217 ---help---
218 Enables support for the on-chip EHCI controller on the SuperH. 218 Enables support for the on-chip EHCI controller on the SuperH.
219 If you use the PCI EHCI controller, this option is not necessary. 219 If you use the PCI EHCI controller, this option is not necessary.
220 220
221config USB_EHCI_S5P 221config USB_EHCI_S5P
222 tristate "EHCI support for Samsung S5P/EXYNOS SoC Series" 222 tristate "EHCI support for Samsung S5P/EXYNOS SoC Series"
223 depends on USB_EHCI_HCD && PLAT_S5P 223 depends on PLAT_S5P
224 help 224 help
225 Enable support for the Samsung S5Pxxxx and Exynos3/4/5 SOC's 225 Enable support for the Samsung S5Pxxxx and Exynos3/4/5 SOC's
226 on-chip EHCI controller. 226 on-chip EHCI controller.
227 227
228config USB_EHCI_MV 228config USB_EHCI_MV
229 bool "EHCI support for Marvell PXA/MMP USB controller" 229 bool "EHCI support for Marvell PXA/MMP USB controller"
230 depends on USB_EHCI_HCD && (ARCH_PXA || ARCH_MMP) 230 depends on (ARCH_PXA || ARCH_MMP)
231 select USB_EHCI_ROOT_HUB_TT 231 select USB_EHCI_ROOT_HUB_TT
232 ---help--- 232 ---help---
233 Enables support for Marvell (including PXA and MMP series) on-chip 233 Enables support for Marvell (including PXA and MMP series) on-chip
@@ -240,13 +240,13 @@ config USB_EHCI_MV
240 240
241config USB_W90X900_EHCI 241config USB_W90X900_EHCI
242 bool "W90X900(W90P910) EHCI support" 242 bool "W90X900(W90P910) EHCI support"
243 depends on USB_EHCI_HCD && ARCH_W90X900 243 depends on ARCH_W90X900
244 ---help--- 244 ---help---
245 Enables support for the W90X900 USB controller 245 Enables support for the W90X900 USB controller
246 246
247config USB_CNS3XXX_EHCI 247config USB_CNS3XXX_EHCI
248 bool "Cavium CNS3XXX EHCI Module (DEPRECATED)" 248 bool "Cavium CNS3XXX EHCI Module (DEPRECATED)"
249 depends on USB_EHCI_HCD && ARCH_CNS3XXX 249 depends on ARCH_CNS3XXX
250 select USB_EHCI_HCD_PLATFORM 250 select USB_EHCI_HCD_PLATFORM
251 ---help--- 251 ---help---
252 This option is deprecated now and the driver was removed, use 252 This option is deprecated now and the driver was removed, use
@@ -258,7 +258,7 @@ config USB_CNS3XXX_EHCI
258 258
259config USB_EHCI_ATH79 259config USB_EHCI_ATH79
260 bool "EHCI support for AR7XXX/AR9XXX SoCs (DEPRECATED)" 260 bool "EHCI support for AR7XXX/AR9XXX SoCs (DEPRECATED)"
261 depends on USB_EHCI_HCD && (SOC_AR71XX || SOC_AR724X || SOC_AR913X || SOC_AR933X) 261 depends on (SOC_AR71XX || SOC_AR724X || SOC_AR913X || SOC_AR933X)
262 select USB_EHCI_ROOT_HUB_TT 262 select USB_EHCI_ROOT_HUB_TT
263 select USB_EHCI_HCD_PLATFORM 263 select USB_EHCI_HCD_PLATFORM
264 default y 264 default y
@@ -269,6 +269,28 @@ config USB_EHCI_ATH79
269 Enables support for the built-in EHCI controller present 269 Enables support for the built-in EHCI controller present
270 on the Atheros AR7XXX/AR9XXX SoCs. 270 on the Atheros AR7XXX/AR9XXX SoCs.
271 271
272config USB_EHCI_HCD_PLATFORM
273 tristate "Generic EHCI driver for a platform device"
274 default n
275 ---help---
276 Adds an EHCI host driver for a generic platform device, which
277 provides a memory space and an irq.
278
279 If unsure, say N.
280
281config USB_OCTEON_EHCI
282 bool "Octeon on-chip EHCI support"
283 depends on CPU_CAVIUM_OCTEON
284 default n
285 select USB_EHCI_BIG_ENDIAN_MMIO
286 help
287 Enable support for the Octeon II SOC's on-chip EHCI
288 controller. It is needed for high-speed (480Mbit/sec)
289 USB 2.0 device support. All CN6XXX based chips with USB are
290 supported.
291
292endif # USB_EHCI_HCD
293
272config USB_OXU210HP_HCD 294config USB_OXU210HP_HCD
273 tristate "OXU210HP HCD support" 295 tristate "OXU210HP HCD support"
274 depends on GENERIC_HARDIRQS 296 depends on GENERIC_HARDIRQS
@@ -450,15 +472,6 @@ config USB_OHCI_HCD_PLATFORM
450 472
451 If unsure, say N. 473 If unsure, say N.
452 474
453config USB_EHCI_HCD_PLATFORM
454 tristate "Generic EHCI driver for a platform device"
455 depends on USB_EHCI_HCD
456 default n
457 ---help---
458 Adds an EHCI host driver for a generic platform device, which
459 provides a memory space and an irq.
460
461 If unsure, say N.
462 475
463config USB_OHCI_BIG_ENDIAN_DESC 476config USB_OHCI_BIG_ENDIAN_DESC
464 bool 477 bool
@@ -651,16 +664,6 @@ config USB_IMX21_HCD
651 To compile this driver as a module, choose M here: the 664 To compile this driver as a module, choose M here: the
652 module will be called "imx21-hcd". 665 module will be called "imx21-hcd".
653 666
654config USB_OCTEON_EHCI
655 bool "Octeon on-chip EHCI support"
656 depends on USB_EHCI_HCD && CPU_CAVIUM_OCTEON
657 default n
658 select USB_EHCI_BIG_ENDIAN_MMIO
659 help
660 Enable support for the Octeon II SOC's on-chip EHCI
661 controller. It is needed for high-speed (480Mbit/sec)
662 USB 2.0 device support. All CN6XXX based chips with USB are
663 supported.
664 667
665config USB_OCTEON_OHCI 668config USB_OCTEON_OHCI
666 bool "Octeon on-chip OHCI support" 669 bool "Octeon on-chip OHCI support"