Commit 3ad3ca05 authored by Florian Fainelli's avatar Florian Fainelli Committed by Greg Kroah-Hartman

USB: enclose all depends on USB_OHCI_HCD within an if USB_OHCI_HCD block

This patch removes the various depends on USB_OHCI_HCD from the OHCI HCD
drivers and enclose them within an if USB_OHCI_HCD / endif block. The
Octeon OHCI HCD driver has been moved around to remain in this block.
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42443dc4
...@@ -358,16 +358,18 @@ config USB_OHCI_HCD ...@@ -358,16 +358,18 @@ config USB_OHCI_HCD
To compile this driver as a module, choose M here: the To compile this driver as a module, choose M here: the
module will be called ohci-hcd. module will be called ohci-hcd.
if USB_OHCI_HCD
config USB_OHCI_HCD_OMAP1 config USB_OHCI_HCD_OMAP1
bool "OHCI support for OMAP1/2 chips" bool "OHCI support for OMAP1/2 chips"
depends on USB_OHCI_HCD && ARCH_OMAP1 depends on ARCH_OMAP1
default y default y
---help--- ---help---
Enables support for the OHCI controller on OMAP1/2 chips. Enables support for the OHCI controller on OMAP1/2 chips.
config USB_OHCI_HCD_OMAP3 config USB_OHCI_HCD_OMAP3
bool "OHCI support for OMAP3 and later chips" bool "OHCI support for OMAP3 and later chips"
depends on USB_OHCI_HCD && (ARCH_OMAP3 || ARCH_OMAP4) depends on (ARCH_OMAP3 || ARCH_OMAP4)
default y default y
---help--- ---help---
Enables support for the on-chip OHCI controller on Enables support for the on-chip OHCI controller on
...@@ -375,7 +377,7 @@ config USB_OHCI_HCD_OMAP3 ...@@ -375,7 +377,7 @@ config USB_OHCI_HCD_OMAP3
config USB_OHCI_ATH79 config USB_OHCI_ATH79
bool "USB OHCI support for the Atheros AR71XX/AR7240 SoCs (DEPRECATED)" bool "USB OHCI support for the Atheros AR71XX/AR7240 SoCs (DEPRECATED)"
depends on USB_OHCI_HCD && (SOC_AR71XX || SOC_AR724X) depends on (SOC_AR71XX || SOC_AR724X)
select USB_OHCI_HCD_PLATFORM select USB_OHCI_HCD_PLATFORM
default y default y
help help
...@@ -387,7 +389,7 @@ config USB_OHCI_ATH79 ...@@ -387,7 +389,7 @@ config USB_OHCI_ATH79
config USB_OHCI_HCD_PPC_OF_BE config USB_OHCI_HCD_PPC_OF_BE
bool "OHCI support for OF platform bus (big endian)" bool "OHCI support for OF platform bus (big endian)"
depends on USB_OHCI_HCD && PPC_OF depends on PPC_OF
select USB_OHCI_BIG_ENDIAN_DESC select USB_OHCI_BIG_ENDIAN_DESC
select USB_OHCI_BIG_ENDIAN_MMIO select USB_OHCI_BIG_ENDIAN_MMIO
---help--- ---help---
...@@ -396,7 +398,7 @@ config USB_OHCI_HCD_PPC_OF_BE ...@@ -396,7 +398,7 @@ config USB_OHCI_HCD_PPC_OF_BE
config USB_OHCI_HCD_PPC_OF_LE config USB_OHCI_HCD_PPC_OF_LE
bool "OHCI support for OF platform bus (little endian)" bool "OHCI support for OF platform bus (little endian)"
depends on USB_OHCI_HCD && PPC_OF depends on PPC_OF
select USB_OHCI_LITTLE_ENDIAN select USB_OHCI_LITTLE_ENDIAN
---help--- ---help---
Enables support for little-endian USB controllers present on the Enables support for little-endian USB controllers present on the
...@@ -404,12 +406,12 @@ config USB_OHCI_HCD_PPC_OF_LE ...@@ -404,12 +406,12 @@ config USB_OHCI_HCD_PPC_OF_LE
config USB_OHCI_HCD_PPC_OF config USB_OHCI_HCD_PPC_OF
bool bool
depends on USB_OHCI_HCD && PPC_OF depends on PPC_OF
default USB_OHCI_HCD_PPC_OF_BE || USB_OHCI_HCD_PPC_OF_LE default USB_OHCI_HCD_PPC_OF_BE || USB_OHCI_HCD_PPC_OF_LE
config USB_OHCI_HCD_PCI config USB_OHCI_HCD_PCI
bool "OHCI support for PCI-bus USB controllers" bool "OHCI support for PCI-bus USB controllers"
depends on USB_OHCI_HCD && PCI && (STB03xxx || PPC_MPC52xx || USB_OHCI_HCD_PPC_OF) depends on PCI && (STB03xxx || PPC_MPC52xx || USB_OHCI_HCD_PPC_OF)
default y default y
select USB_OHCI_LITTLE_ENDIAN select USB_OHCI_LITTLE_ENDIAN
---help--- ---help---
...@@ -418,7 +420,7 @@ config USB_OHCI_HCD_PCI ...@@ -418,7 +420,7 @@ config USB_OHCI_HCD_PCI
config USB_OHCI_HCD_SSB config USB_OHCI_HCD_SSB
bool "OHCI support for Broadcom SSB OHCI core (DEPRECATED)" bool "OHCI support for Broadcom SSB OHCI core (DEPRECATED)"
depends on USB_OHCI_HCD && (SSB = y || SSB = USB_OHCI_HCD) depends on (SSB = y || SSB = USB_OHCI_HCD)
select USB_HCD_SSB select USB_HCD_SSB
select USB_OHCI_HCD_PLATFORM select USB_OHCI_HCD_PLATFORM
default n default n
...@@ -436,7 +438,7 @@ config USB_OHCI_HCD_SSB ...@@ -436,7 +438,7 @@ config USB_OHCI_HCD_SSB
config USB_OHCI_SH config USB_OHCI_SH
bool "OHCI support for SuperH USB controller (DEPRECATED)" bool "OHCI support for SuperH USB controller (DEPRECATED)"
depends on USB_OHCI_HCD && SUPERH depends on SUPERH
select USB_OHCI_HCD_PLATFORM select USB_OHCI_HCD_PLATFORM
---help--- ---help---
This option is deprecated now and the driver was removed, use This option is deprecated now and the driver was removed, use
...@@ -447,13 +449,13 @@ config USB_OHCI_SH ...@@ -447,13 +449,13 @@ config USB_OHCI_SH
config USB_OHCI_EXYNOS config USB_OHCI_EXYNOS
boolean "OHCI support for Samsung EXYNOS SoC Series" boolean "OHCI support for Samsung EXYNOS SoC Series"
depends on USB_OHCI_HCD && ARCH_EXYNOS depends on ARCH_EXYNOS
help help
Enable support for the Samsung Exynos SOC's on-chip OHCI controller. Enable support for the Samsung Exynos SOC's on-chip OHCI controller.
config USB_CNS3XXX_OHCI config USB_CNS3XXX_OHCI
bool "Cavium CNS3XXX OHCI Module (DEPRECATED)" bool "Cavium CNS3XXX OHCI Module (DEPRECATED)"
depends on USB_OHCI_HCD && ARCH_CNS3XXX depends on ARCH_CNS3XXX
select USB_OHCI_HCD_PLATFORM select USB_OHCI_HCD_PLATFORM
---help--- ---help---
This option is deprecated now and the driver was removed, use This option is deprecated now and the driver was removed, use
...@@ -464,7 +466,6 @@ config USB_CNS3XXX_OHCI ...@@ -464,7 +466,6 @@ config USB_CNS3XXX_OHCI
config USB_OHCI_HCD_PLATFORM config USB_OHCI_HCD_PLATFORM
bool "Generic OHCI driver for a platform device" bool "Generic OHCI driver for a platform device"
depends on USB_OHCI_HCD
default n default n
---help--- ---help---
Adds an OHCI host driver for a generic platform device, which Adds an OHCI host driver for a generic platform device, which
...@@ -472,23 +473,33 @@ config USB_OHCI_HCD_PLATFORM ...@@ -472,23 +473,33 @@ config USB_OHCI_HCD_PLATFORM
If unsure, say N. If unsure, say N.
config USB_OCTEON_OHCI
bool "Octeon on-chip OHCI support"
depends on CPU_CAVIUM_OCTEON
default USB_OCTEON_EHCI
select USB_OHCI_BIG_ENDIAN_MMIO
select USB_OHCI_LITTLE_ENDIAN
help
Enable support for the Octeon II SOC's on-chip OHCI
controller. It is needed for low-speed USB 1.0 device
support. All CN6XXX based chips with USB are supported.
config USB_OHCI_BIG_ENDIAN_DESC config USB_OHCI_BIG_ENDIAN_DESC
bool bool
depends on USB_OHCI_HCD
default n default n
config USB_OHCI_BIG_ENDIAN_MMIO config USB_OHCI_BIG_ENDIAN_MMIO
bool bool
depends on USB_OHCI_HCD
default n default n
config USB_OHCI_LITTLE_ENDIAN config USB_OHCI_LITTLE_ENDIAN
bool bool
depends on USB_OHCI_HCD
default n if STB03xxx || PPC_MPC52xx default n if STB03xxx || PPC_MPC52xx
default y default y
endif # USB_OHCI_HCD
config USB_UHCI_HCD config USB_UHCI_HCD
tristate "UHCI HCD (most Intel and VIA) support" tristate "UHCI HCD (most Intel and VIA) support"
depends on PCI || SPARC_LEON || ARCH_VT8500 depends on PCI || SPARC_LEON || ARCH_VT8500
...@@ -665,16 +676,6 @@ config USB_IMX21_HCD ...@@ -665,16 +676,6 @@ config USB_IMX21_HCD
module will be called "imx21-hcd". module will be called "imx21-hcd".
config USB_OCTEON_OHCI
bool "Octeon on-chip OHCI support"
depends on USB_OHCI_HCD && CPU_CAVIUM_OCTEON
default USB_OCTEON_EHCI
select USB_OHCI_BIG_ENDIAN_MMIO
select USB_OHCI_LITTLE_ENDIAN
help
Enable support for the Octeon II SOC's on-chip OHCI
controller. It is needed for low-speed USB 1.0 device
support. All CN6XXX based chips with USB are supported.
config USB_OCTEON2_COMMON config USB_OCTEON2_COMMON
bool bool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment