diff options
-rw-r--r-- | drivers/usb/Kconfig | 2 | ||||
-rw-r--r-- | drivers/usb/Makefile | 1 | ||||
-rw-r--r-- | drivers/usb/chipidea/Kconfig | 10 | ||||
-rw-r--r-- | drivers/usb/chipidea/Makefile | 11 | ||||
-rw-r--r-- | drivers/usb/chipidea/ci13xxx_msm.c (renamed from drivers/usb/gadget/ci13xxx_msm.c) | 0 | ||||
-rw-r--r-- | drivers/usb/chipidea/ci13xxx_pci.c (renamed from drivers/usb/gadget/ci13xxx_pci.c) | 0 | ||||
-rw-r--r-- | drivers/usb/chipidea/ci13xxx_udc.c (renamed from drivers/usb/gadget/ci13xxx_udc.c) | 0 | ||||
-rw-r--r-- | drivers/usb/chipidea/ci13xxx_udc.h (renamed from drivers/usb/gadget/ci13xxx_udc.h) | 0 | ||||
-rw-r--r-- | drivers/usb/gadget/Kconfig | 41 | ||||
-rw-r--r-- | drivers/usb/gadget/Makefile | 3 |
10 files changed, 24 insertions, 44 deletions
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 4473ae51ddb4..a7773a3e02b1 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig | |||
@@ -133,6 +133,8 @@ source "drivers/usb/host/Kconfig" | |||
133 | 133 | ||
134 | source "drivers/usb/musb/Kconfig" | 134 | source "drivers/usb/musb/Kconfig" |
135 | 135 | ||
136 | source "drivers/usb/chipidea/Kconfig" | ||
137 | |||
136 | source "drivers/usb/renesas_usbhs/Kconfig" | 138 | source "drivers/usb/renesas_usbhs/Kconfig" |
137 | 139 | ||
138 | source "drivers/usb/class/Kconfig" | 140 | source "drivers/usb/class/Kconfig" |
diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile index 77c835a15239..c691eea51537 100644 --- a/drivers/usb/Makefile +++ b/drivers/usb/Makefile | |||
@@ -53,6 +53,7 @@ obj-$(CONFIG_USB_ATM) += atm/ | |||
53 | obj-$(CONFIG_USB_SPEEDTOUCH) += atm/ | 53 | obj-$(CONFIG_USB_SPEEDTOUCH) += atm/ |
54 | 54 | ||
55 | obj-$(CONFIG_USB_MUSB_HDRC) += musb/ | 55 | obj-$(CONFIG_USB_MUSB_HDRC) += musb/ |
56 | obj-$(CONFIG_USB_CHIPIDEA) += chipidea/ | ||
56 | obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs/ | 57 | obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs/ |
57 | obj-$(CONFIG_USB_GADGET) += gadget/ | 58 | obj-$(CONFIG_USB_GADGET) += gadget/ |
58 | 59 | ||
diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig new file mode 100644 index 000000000000..71725ddc8f25 --- /dev/null +++ b/drivers/usb/chipidea/Kconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | config USB_CHIPIDEA | ||
2 | tristate "ChipIdea Highspeed Dual Role Controller" | ||
3 | depends on USB && USB_GADGET | ||
4 | select USB_GADGET_DUALSPEED | ||
5 | help | ||
6 | Say Y here if your system has a dual role high speed USB | ||
7 | controller based on ChipIdea silicon IP. Currently, only the | ||
8 | peripheral mode is supported. | ||
9 | |||
10 | When compiled dynamically, the module will be called ci-hdrc.ko. | ||
diff --git a/drivers/usb/chipidea/Makefile b/drivers/usb/chipidea/Makefile new file mode 100644 index 000000000000..e56bedbf9da2 --- /dev/null +++ b/drivers/usb/chipidea/Makefile | |||
@@ -0,0 +1,11 @@ | |||
1 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc.o | ||
2 | |||
3 | ci_hdrc-y := ci13xxx_udc.o | ||
4 | |||
5 | ifneq ($(CONFIG_PCI),) | ||
6 | obj-$(CONFIG_USB_CHIPIDEA) += ci13xxx_pci.o | ||
7 | endif | ||
8 | |||
9 | ifneq ($(CONFIG_ARCH_MSM),) | ||
10 | obj-$(CONFIG_USB_CHIPIDEA) += ci13xxx_msm.o | ||
11 | endif | ||
diff --git a/drivers/usb/gadget/ci13xxx_msm.c b/drivers/usb/chipidea/ci13xxx_msm.c index 418de0e61c5a..418de0e61c5a 100644 --- a/drivers/usb/gadget/ci13xxx_msm.c +++ b/drivers/usb/chipidea/ci13xxx_msm.c | |||
diff --git a/drivers/usb/gadget/ci13xxx_pci.c b/drivers/usb/chipidea/ci13xxx_pci.c index f075ef33834f..f075ef33834f 100644 --- a/drivers/usb/gadget/ci13xxx_pci.c +++ b/drivers/usb/chipidea/ci13xxx_pci.c | |||
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/chipidea/ci13xxx_udc.c index 819636a19186..819636a19186 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/chipidea/ci13xxx_udc.c | |||
diff --git a/drivers/usb/gadget/ci13xxx_udc.h b/drivers/usb/chipidea/ci13xxx_udc.h index a8aa1a70dec4..a8aa1a70dec4 100644 --- a/drivers/usb/gadget/ci13xxx_udc.h +++ b/drivers/usb/chipidea/ci13xxx_udc.h | |||
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 47e086a0b7f2..1d7405c180d5 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -378,30 +378,6 @@ config USB_FSL_QE | |||
378 | Set CONFIG_USB_GADGET to "m" to build this driver as a | 378 | Set CONFIG_USB_GADGET to "m" to build this driver as a |
379 | dynamically linked module called "fsl_qe_udc". | 379 | dynamically linked module called "fsl_qe_udc". |
380 | 380 | ||
381 | config USB_CHIPIDEA_UDC | ||
382 | tristate "ChipIdea UDC driver" | ||
383 | select USB_GADGET_DUALSPEED | ||
384 | help | ||
385 | This module contains the ChipIdea USB device controller driver; | ||
386 | you will also need platform driver like ci13xxx_pci or ci13xxx_msm | ||
387 | to use it. | ||
388 | |||
389 | Say "y" to link the driver statically, or "m" to build a | ||
390 | dynamically linked module called "ci13xxx_udc", which will serve | ||
391 | as a driver for ChipIdea udc on different platforms. | ||
392 | |||
393 | config USB_CI13XXX_PCI | ||
394 | tristate "MIPS USB CI13xxx PCI UDC" | ||
395 | depends on PCI && USB_CHIPIDEA_UDC | ||
396 | select USB_GADGET_DUALSPEED | ||
397 | help | ||
398 | MIPS USB IP core family device controller | ||
399 | Currently it only supports IP part number CI13412 | ||
400 | |||
401 | Say "y" to link the driver statically, or "m" to build a | ||
402 | dynamically linked module called "ci13xxx_pci" and force all | ||
403 | gadget drivers to also be dynamically linked. | ||
404 | |||
405 | config USB_NET2272 | 381 | config USB_NET2272 |
406 | tristate "PLX NET2272" | 382 | tristate "PLX NET2272" |
407 | select USB_GADGET_DUALSPEED | 383 | select USB_GADGET_DUALSPEED |
@@ -494,23 +470,6 @@ config USB_EG20T | |||
494 | ML7213/ML7831 is companion chip for Intel Atom E6xx series. | 470 | ML7213/ML7831 is companion chip for Intel Atom E6xx series. |
495 | ML7213/ML7831 is completely compatible for Intel EG20T PCH. | 471 | ML7213/ML7831 is completely compatible for Intel EG20T PCH. |
496 | 472 | ||
497 | config USB_CI13XXX_MSM | ||
498 | tristate "MIPS USB CI13xxx for MSM" | ||
499 | depends on ARCH_MSM && USB_CHIPIDEA_UDC | ||
500 | select USB_GADGET_DUALSPEED | ||
501 | select USB_MSM_OTG | ||
502 | help | ||
503 | MSM SoC has chipidea USB controller. This driver uses | ||
504 | ci13xxx_udc core. | ||
505 | This driver depends on OTG driver for PHY initialization, | ||
506 | clock management, powering up VBUS, and power management. | ||
507 | This driver is not supported on boards like trout which | ||
508 | has an external PHY. | ||
509 | |||
510 | Say "y" to link the driver statically, or "m" to build a | ||
511 | dynamically linked module called "ci13xxx_msm" and force all | ||
512 | gadget drivers to also be dynamically linked. | ||
513 | |||
514 | # | 473 | # |
515 | # LAST -- dummy/emulated controller | 474 | # LAST -- dummy/emulated controller |
516 | # | 475 | # |
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile index 3786c7cdd807..6ddfd26e8f38 100644 --- a/drivers/usb/gadget/Makefile +++ b/drivers/usb/gadget/Makefile | |||
@@ -22,8 +22,6 @@ fsl_usb2_udc-$(CONFIG_ARCH_MXC) += fsl_mxc_udc.o | |||
22 | obj-$(CONFIG_USB_M66592) += m66592-udc.o | 22 | obj-$(CONFIG_USB_M66592) += m66592-udc.o |
23 | obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o | 23 | obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o |
24 | obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o | 24 | obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o |
25 | obj-$(CONFIG_USB_CHIPIDEA_UDC) += ci13xxx_udc.o | ||
26 | obj-$(CONFIG_USB_CI13XXX_PCI) += ci13xxx_pci.o | ||
27 | obj-$(CONFIG_USB_S3C_HSOTG) += s3c-hsotg.o | 25 | obj-$(CONFIG_USB_S3C_HSOTG) += s3c-hsotg.o |
28 | obj-$(CONFIG_USB_S3C_HSUDC) += s3c-hsudc.o | 26 | obj-$(CONFIG_USB_S3C_HSUDC) += s3c-hsudc.o |
29 | obj-$(CONFIG_USB_LANGWELL) += langwell_udc.o | 27 | obj-$(CONFIG_USB_LANGWELL) += langwell_udc.o |
@@ -31,7 +29,6 @@ obj-$(CONFIG_USB_LPC32XX) += lpc32xx_udc.o | |||
31 | obj-$(CONFIG_USB_EG20T) += pch_udc.o | 29 | obj-$(CONFIG_USB_EG20T) += pch_udc.o |
32 | obj-$(CONFIG_USB_MV_UDC) += mv_udc.o | 30 | obj-$(CONFIG_USB_MV_UDC) += mv_udc.o |
33 | mv_udc-y := mv_udc_core.o | 31 | mv_udc-y := mv_udc_core.o |
34 | obj-$(CONFIG_USB_CI13XXX_MSM) += ci13xxx_msm.o | ||
35 | obj-$(CONFIG_USB_FUSB300) += fusb300_udc.o | 32 | obj-$(CONFIG_USB_FUSB300) += fusb300_udc.o |
36 | 33 | ||
37 | # | 34 | # |