diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-03-01 02:58:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-01 16:01:46 -0500 |
commit | 60b0bf0f11a02a6c288c7a923b2521aa7cfdc6c3 (patch) | |
tree | 33f751ced166fdce75efa89b3b4f9e80b178e009 /drivers/usb | |
parent | ad93562bdeecdded7d02eaaaf1aa5705ab57b1b7 (diff) |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/Kconfig | 14 | ||||
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 5 |
3 files changed, 16 insertions, 5 deletions
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 923e5a079b59..9116d30bcdac 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig | |||
@@ -173,6 +173,13 @@ config USB_EHCI_HCD_PPC_OF | |||
173 | Enables support for the USB controller present on the PowerPC | 173 | Enables support for the USB controller present on the PowerPC |
174 | OpenFirmware platform bus. | 174 | OpenFirmware platform bus. |
175 | 175 | ||
176 | config USB_EHCI_SH | ||
177 | bool "EHCI support for SuperH USB controller" | ||
178 | depends on USB_EHCI_HCD && SUPERH | ||
179 | ---help--- | ||
180 | Enables support for the on-chip EHCI controller on the SuperH. | ||
181 | If you use the PCI EHCI controller, this option is not necessary. | ||
182 | |||
176 | config USB_W90X900_EHCI | 183 | config USB_W90X900_EHCI |
177 | bool "W90X900(W90P910) EHCI support" | 184 | bool "W90X900(W90P910) EHCI support" |
178 | depends on USB_EHCI_HCD && ARCH_W90X900 | 185 | depends on USB_EHCI_HCD && ARCH_W90X900 |
@@ -326,6 +333,13 @@ config USB_OHCI_HCD_SSB | |||
326 | 333 | ||
327 | If unsure, say N. | 334 | If unsure, say N. |
328 | 335 | ||
336 | config USB_OHCI_SH | ||
337 | bool "OHCI support for SuperH USB controller" | ||
338 | depends on USB_OHCI_HCD && SUPERH | ||
339 | ---help--- | ||
340 | Enables support for the on-chip OHCI controller on the SuperH. | ||
341 | If you use the PCI OHCI controller, this option is not necessary. | ||
342 | |||
329 | config USB_CNS3XXX_OHCI | 343 | config USB_CNS3XXX_OHCI |
330 | bool "Cavium CNS3XXX OHCI Module" | 344 | bool "Cavium CNS3XXX OHCI Module" |
331 | depends on USB_OHCI_HCD && ARCH_CNS3XXX | 345 | depends on USB_OHCI_HCD && ARCH_CNS3XXX |
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index e6277536f392..cfeb24b3ee09 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -1180,7 +1180,7 @@ MODULE_LICENSE ("GPL"); | |||
1180 | #define PLATFORM_DRIVER ehci_mxc_driver | 1180 | #define PLATFORM_DRIVER ehci_mxc_driver |
1181 | #endif | 1181 | #endif |
1182 | 1182 | ||
1183 | #ifdef CONFIG_CPU_SUBTYPE_SH7786 | 1183 | #ifdef CONFIG_USB_EHCI_SH |
1184 | #include "ehci-sh.c" | 1184 | #include "ehci-sh.c" |
1185 | #define PLATFORM_DRIVER ehci_hcd_sh_driver | 1185 | #define PLATFORM_DRIVER ehci_hcd_sh_driver |
1186 | #endif | 1186 | #endif |
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 7b791bf1e7b4..fb035751e4b2 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -1059,10 +1059,7 @@ MODULE_LICENSE ("GPL"); | |||
1059 | #define PLATFORM_DRIVER ohci_hcd_da8xx_driver | 1059 | #define PLATFORM_DRIVER ohci_hcd_da8xx_driver |
1060 | #endif | 1060 | #endif |
1061 | 1061 | ||
1062 | #if defined(CONFIG_CPU_SUBTYPE_SH7720) || \ | 1062 | #ifdef CONFIG_USB_OHCI_SH |
1063 | defined(CONFIG_CPU_SUBTYPE_SH7721) || \ | ||
1064 | defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | ||
1065 | defined(CONFIG_CPU_SUBTYPE_SH7786) | ||
1066 | #include "ohci-sh.c" | 1063 | #include "ohci-sh.c" |
1067 | #define PLATFORM_DRIVER ohci_hcd_sh_driver | 1064 | #define PLATFORM_DRIVER ohci_hcd_sh_driver |
1068 | #endif | 1065 | #endif |