Commit 7fe1864a authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: usb/hcd kconfig updates

This updates the dependencies of the HCDs and host-side USB so that:

 - Options for PCI-only HCDs (UHCI and, for now, EHCI) only appear
   systems that actually have PCI.

 - Adding non-PCI bus glue support for another OHCI adapter doesn't
   need involve changing the main USB Kconfig anymore.

 - Minor tweaks to the OMAP support, so OMAP 17xx and 24xx don't need
   additional Kconfig changes and so the H3/17xx gets the ISP1301 too.

This still tries to hide host-side USB config options on systems that
don't offer USB.  While currently convenient, that's a losing proposition
in the long term:  host controllers on chips like SL811 and TD243 can be
put onto any custom board.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent b5a752cb
...@@ -7,7 +7,7 @@ menu "USB support" ...@@ -7,7 +7,7 @@ menu "USB support"
# ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface. # ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
config USB config USB
tristate "Support for Host-side USB" tristate "Support for Host-side USB"
depends on PCI || SA1111 || ARCH_OMAP1510 || ARCH_OMAP1610 || ARCH_LH7A404 || PXA27x depends on USB_ARCH_HAS_HCD
---help--- ---help---
Universal Serial Bus (USB) is a specification for a serial bus Universal Serial Bus (USB) is a specification for a serial bus
subsystem which offers higher speeds and more features than the subsystem which offers higher speeds and more features than the
......
# Host-side USB depends on having a host controller
# NOTE: dummy_hcd is always an option, but it's ignored here ...
# NOTE: SL-811 option should be board-specific ...
config USB_ARCH_HAS_HCD
boolean
default y if USB_ARCH_HAS_OHCI
default y if ARM # SL-811
default PCI
# many non-PCI hcds implement OHCI
config USB_ARCH_HAS_OHCI
boolean
default y if SA1111
default y if ARCH_OMAP
default y if ARCH_LH7A404
default y if PXA27x
default PCI
# #
# USB Host Controller Drivers # USB Host Controller Drivers
# #
...@@ -6,7 +24,7 @@ comment "USB Host Controller Drivers" ...@@ -6,7 +24,7 @@ comment "USB Host Controller Drivers"
config USB_EHCI_HCD config USB_EHCI_HCD
tristate "EHCI HCD (USB 2.0) support" tristate "EHCI HCD (USB 2.0) support"
depends on USB depends on USB && PCI
---help--- ---help---
The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
"high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware. "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
...@@ -51,8 +69,8 @@ config USB_EHCI_ROOT_HUB_TT ...@@ -51,8 +69,8 @@ config USB_EHCI_ROOT_HUB_TT
config USB_OHCI_HCD config USB_OHCI_HCD
tristate "OHCI HCD support" tristate "OHCI HCD support"
depends on USB depends on USB && USB_ARCH_HAS_OHCI
select ISP1301_OMAP if MACH_OMAP_H2 select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3
---help--- ---help---
The Open Host Controller Interface (OHCI) is a standard for accessing The Open Host Controller Interface (OHCI) is a standard for accessing
USB 1.1 host controller hardware. It does more in hardware than Intel's USB 1.1 host controller hardware. It does more in hardware than Intel's
...@@ -68,7 +86,7 @@ config USB_OHCI_HCD ...@@ -68,7 +86,7 @@ config 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 USB depends on USB && PCI
---help--- ---help---
The Universal Host Controller Interface is a standard by Intel for The Universal Host Controller Interface is a standard by Intel for
accessing the USB hardware in the PC (which is also called the USB accessing the USB hardware in the PC (which is also called the USB
......
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