mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 03:40:04 +00:00
usb: EHCI, OHCI: Add configuration for the SH USB controller
The SH EHCI/OHCI driver hardcoded the CPU type in {ehci,ohci}-hcd.c. So if we will add the new CPU, we had to add to the hcd driver each time. The patch adds the CONFIG_USB_{EHCI,OHCI}_SH configuration. So if we want to use the SH EHCI/OHCI, we only enable the configuration. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ad93562bde
commit
60b0bf0f11
3 changed files with 16 additions and 5 deletions
|
@ -173,6 +173,13 @@ config USB_EHCI_HCD_PPC_OF
|
||||||
Enables support for the USB controller present on the PowerPC
|
Enables support for the USB controller present on the PowerPC
|
||||||
OpenFirmware platform bus.
|
OpenFirmware platform bus.
|
||||||
|
|
||||||
|
config USB_EHCI_SH
|
||||||
|
bool "EHCI support for SuperH USB controller"
|
||||||
|
depends on USB_EHCI_HCD && SUPERH
|
||||||
|
---help---
|
||||||
|
Enables support for the on-chip EHCI controller on the SuperH.
|
||||||
|
If you use the PCI EHCI controller, this option is not necessary.
|
||||||
|
|
||||||
config USB_W90X900_EHCI
|
config USB_W90X900_EHCI
|
||||||
bool "W90X900(W90P910) EHCI support"
|
bool "W90X900(W90P910) EHCI support"
|
||||||
depends on USB_EHCI_HCD && ARCH_W90X900
|
depends on USB_EHCI_HCD && ARCH_W90X900
|
||||||
|
@ -326,6 +333,13 @@ config USB_OHCI_HCD_SSB
|
||||||
|
|
||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
|
|
||||||
|
config USB_OHCI_SH
|
||||||
|
bool "OHCI support for SuperH USB controller"
|
||||||
|
depends on USB_OHCI_HCD && SUPERH
|
||||||
|
---help---
|
||||||
|
Enables support for the on-chip OHCI controller on the SuperH.
|
||||||
|
If you use the PCI OHCI controller, this option is not necessary.
|
||||||
|
|
||||||
config USB_CNS3XXX_OHCI
|
config USB_CNS3XXX_OHCI
|
||||||
bool "Cavium CNS3XXX OHCI Module"
|
bool "Cavium CNS3XXX OHCI Module"
|
||||||
depends on USB_OHCI_HCD && ARCH_CNS3XXX
|
depends on USB_OHCI_HCD && ARCH_CNS3XXX
|
||||||
|
|
|
@ -1180,7 +1180,7 @@ MODULE_LICENSE ("GPL");
|
||||||
#define PLATFORM_DRIVER ehci_mxc_driver
|
#define PLATFORM_DRIVER ehci_mxc_driver
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_SUBTYPE_SH7786
|
#ifdef CONFIG_USB_EHCI_SH
|
||||||
#include "ehci-sh.c"
|
#include "ehci-sh.c"
|
||||||
#define PLATFORM_DRIVER ehci_hcd_sh_driver
|
#define PLATFORM_DRIVER ehci_hcd_sh_driver
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1059,10 +1059,7 @@ MODULE_LICENSE ("GPL");
|
||||||
#define PLATFORM_DRIVER ohci_hcd_da8xx_driver
|
#define PLATFORM_DRIVER ohci_hcd_da8xx_driver
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_SUBTYPE_SH7720) || \
|
#ifdef CONFIG_USB_OHCI_SH
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7721) || \
|
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7763) || \
|
|
||||||
defined(CONFIG_CPU_SUBTYPE_SH7786)
|
|
||||||
#include "ohci-sh.c"
|
#include "ohci-sh.c"
|
||||||
#define PLATFORM_DRIVER ohci_hcd_sh_driver
|
#define PLATFORM_DRIVER ohci_hcd_sh_driver
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue