aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-20 13:26:31 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-20 13:26:31 -0500
commit6166805c3de539a41cfcae39026c5bc273d7c6aa (patch)
treeb7ed52d9c2f672d4c8b6f9434fb6a19e8e859a16 /drivers/usb/host
parent04867125e154fdc6dc88024b49557c30adde2502 (diff)
Revert "USB: EHCI: make ehci-vt8500 a separate driver"
This reverts commit d57ada0c37ecf836259c205442c15c7679a6dc3e. All of these are wrong and need to be reverted for now. Cc: Manjunath Goudar <manjunath.goudar@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Tony Prisk <linux@prisktech.co.nz> Cc: Alexey Charkov <alchark@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/Kconfig8
-rw-r--r--drivers/usb/host/Makefile1
-rw-r--r--drivers/usb/host/ehci-hcd.c6
-rw-r--r--drivers/usb/host/ehci-vt8500.c73
4 files changed, 45 insertions, 43 deletions
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index d77e0286f68b..c59a1126926f 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -162,14 +162,6 @@ config USB_EHCI_HCD_OMAP
162 Enables support for the on-chip EHCI controller on 162 Enables support for the on-chip EHCI controller on
163 OMAP3 and later chips. 163 OMAP3 and later chips.
164 164
165config USB_EHCI_HCD_VT8500
166 tristate "Support for VT8500 on-chip EHCI USB controller"
167 depends on USB_EHCI_HCD && ARCH_VT8500
168 default y
169 ---help---
170 Enables support for the on-chip EHCI controller on
171 VT8500 chips.
172
173config USB_EHCI_MSM 165config USB_EHCI_MSM
174 bool "Support for MSM on-chip EHCI USB controller" 166 bool "Support for MSM on-chip EHCI USB controller"
175 depends on USB_EHCI_HCD && ARCH_MSM 167 depends on USB_EHCI_HCD && ARCH_MSM
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
index b0da9cf9d035..001fbff2fdef 100644
--- a/drivers/usb/host/Makefile
+++ b/drivers/usb/host/Makefile
@@ -29,7 +29,6 @@ obj-$(CONFIG_USB_EHCI_HCD_PLATFORM) += ehci-platform.o
29obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o 29obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o
30 30
31obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o 31obj-$(CONFIG_USB_OXU210HP_HCD) += oxu210hp-hcd.o
32obj-$(CONFIG_USB_EHCI_HCD_VT8500)+= ehci-vt8500.o
33obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o 32obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
34obj-$(CONFIG_USB_ISP1362_HCD) += isp1362-hcd.o 33obj-$(CONFIG_USB_ISP1362_HCD) += isp1362-hcd.o
35obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o 34obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 487ebb892bc2..b416a3fc9959 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1292,6 +1292,11 @@ MODULE_LICENSE ("GPL");
1292#define PLATFORM_DRIVER ehci_octeon_driver 1292#define PLATFORM_DRIVER ehci_octeon_driver
1293#endif 1293#endif
1294 1294
1295#ifdef CONFIG_ARCH_VT8500
1296#include "ehci-vt8500.c"
1297#define PLATFORM_DRIVER vt8500_ehci_driver
1298#endif
1299
1295#ifdef CONFIG_PLAT_SPEAR 1300#ifdef CONFIG_PLAT_SPEAR
1296#include "ehci-spear.c" 1301#include "ehci-spear.c"
1297#define PLATFORM_DRIVER spear_ehci_hcd_driver 1302#define PLATFORM_DRIVER spear_ehci_hcd_driver
@@ -1342,7 +1347,6 @@ MODULE_LICENSE ("GPL");
1342 !IS_ENABLED(CONFIG_USB_CHIPIDEA_HOST) && \ 1347 !IS_ENABLED(CONFIG_USB_CHIPIDEA_HOST) && \
1343 !IS_ENABLED(CONFIG_USB_EHCI_MXC) && \ 1348 !IS_ENABLED(CONFIG_USB_EHCI_MXC) && \
1344 !defined(PLATFORM_DRIVER) && \ 1349 !defined(PLATFORM_DRIVER) && \
1345 !IS_ENABLED(CONFIG_ARCH_VT8500) && \
1346 !defined(PS3_SYSTEM_BUS_DRIVER) && \ 1350 !defined(PS3_SYSTEM_BUS_DRIVER) && \
1347 !defined(OF_PLATFORM_DRIVER) && \ 1351 !defined(OF_PLATFORM_DRIVER) && \
1348 !defined(XILINX_OF_PLATFORM_DRIVER) 1352 !defined(XILINX_OF_PLATFORM_DRIVER)
diff --git a/drivers/usb/host/ehci-vt8500.c b/drivers/usb/host/ehci-vt8500.c
index 98d65bdcb969..11695d5b9d86 100644
--- a/drivers/usb/host/ehci-vt8500.c
+++ b/drivers/usb/host/ehci-vt8500.c
@@ -16,25 +16,52 @@
16 * 16 *
17 */ 17 */
18 18
19#include <linux/kernel.h>
20#include <linux/module.h>
21#include <linux/usb.h>
22#include <linux/usb/hcd.h>
23#include <linux/io.h>
24#include <linux/dma-mapping.h>
25#include <linux/of.h> 19#include <linux/of.h>
26#include <linux/platform_device.h> 20#include <linux/platform_device.h>
27 21
28#include "ehci.h" 22static const struct hc_driver vt8500_ehci_hc_driver = {
23 .description = hcd_name,
24 .product_desc = "VT8500 EHCI",
25 .hcd_priv_size = sizeof(struct ehci_hcd),
29 26
30#define DRIVER_DESC "vt8500 On-Chip EHCI Host driver" 27 /*
28 * generic hardware linkage
29 */
30 .irq = ehci_irq,
31 .flags = HCD_MEMORY | HCD_USB2,
32
33 /*
34 * basic lifecycle operations
35 */
36 .reset = ehci_setup,
37 .start = ehci_run,
38 .stop = ehci_stop,
39 .shutdown = ehci_shutdown,
31 40
32static const char hcd_name[] = "ehci-vt8500"; 41 /*
42 * managing i/o requests and associated device resources
43 */
44 .urb_enqueue = ehci_urb_enqueue,
45 .urb_dequeue = ehci_urb_dequeue,
46 .endpoint_disable = ehci_endpoint_disable,
47 .endpoint_reset = ehci_endpoint_reset,
33 48
34static struct hc_driver __read_mostly vt8500_ehci_hc_driver; 49 /*
50 * scheduling support
51 */
52 .get_frame_number = ehci_get_frame,
35 53
36static const struct ehci_driver_overrides ehci_vt8500_overrides __initdata = { 54 /*
37 .reset = ehci_setup, 55 * root hub support
56 */
57 .hub_status_data = ehci_hub_status_data,
58 .hub_control = ehci_hub_control,
59 .bus_suspend = ehci_bus_suspend,
60 .bus_resume = ehci_bus_resume,
61 .relinquish_port = ehci_relinquish_port,
62 .port_handed_over = ehci_port_handed_over,
63
64 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
38}; 65};
39 66
40static u64 vt8500_ehci_dma_mask = DMA_BIT_MASK(32); 67static u64 vt8500_ehci_dma_mask = DMA_BIT_MASK(32);
@@ -113,31 +140,11 @@ static struct platform_driver vt8500_ehci_driver = {
113 .remove = vt8500_ehci_drv_remove, 140 .remove = vt8500_ehci_drv_remove,
114 .shutdown = usb_hcd_platform_shutdown, 141 .shutdown = usb_hcd_platform_shutdown,
115 .driver = { 142 .driver = {
116 .name = hcd_name, 143 .name = "vt8500-ehci",
117 .owner = THIS_MODULE, 144 .owner = THIS_MODULE,
118 .of_match_table = of_match_ptr(vt8500_ehci_ids), 145 .of_match_table = of_match_ptr(vt8500_ehci_ids),
119 } 146 }
120}; 147};
121 148
122static int __init ehci_vt8500_init(void)
123{
124 if (usb_disabled())
125 return -ENODEV;
126
127 pr_info("%s: " DRIVER_DESC "\n", hcd_name);
128 ehci_init_driver(&vt8500_ehci_hc_driver, &ehci_vt8500_overrides);
129 return platform_driver_register(&vt8500_ehci_driver);
130}
131module_init(ehci_vt8500_init);
132
133static void __exit ehci_vt8500_cleanup(void)
134{
135 platform_driver_unregister(&vt8500_ehci_driver);
136}
137module_exit(ehci_vt8500_cleanup);
138
139MODULE_DESCRIPTION(DRIVER_DESC);
140MODULE_AUTHOR("Alexey Charkov");
141MODULE_LICENSE("GPL v2");
142MODULE_ALIAS("platform:vt8500-ehci"); 149MODULE_ALIAS("platform:vt8500-ehci");
143MODULE_DEVICE_TABLE(of, vt8500_ehci_ids); 150MODULE_DEVICE_TABLE(of, vt8500_ehci_ids);