diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-03-20 04:28:07 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-26 05:54:39 -0400 |
| commit | d728189d10a0bea28ecb0e9acde1ea517112d090 (patch) | |
| tree | c1c2cbb53e8a33f01a957ba8813d8ddc990bbd77 /drivers/usb/chipidea | |
| parent | 3a316ec4c91cfe03093d708369f9ab57000c96c3 (diff) | |
chipidea: introduce specific Kconfig options for glue drivers
This patch introduces USB_CHIPIDEA_PCI and USB_CHIPIDEA_OF Kconfig options, one
per each specific glue driver. This is needed to provide different dependencies
they have.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
| -rw-r--r-- | drivers/usb/chipidea/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/usb/chipidea/Makefile | 9 |
2 files changed, 12 insertions, 7 deletions
diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig index 77b47d82c9a6..8b0edb9c6246 100644 --- a/drivers/usb/chipidea/Kconfig +++ b/drivers/usb/chipidea/Kconfig | |||
| @@ -10,6 +10,16 @@ config USB_CHIPIDEA | |||
| 10 | 10 | ||
| 11 | if USB_CHIPIDEA | 11 | if USB_CHIPIDEA |
| 12 | 12 | ||
| 13 | config USB_CHIPIDEA_OF | ||
| 14 | tristate | ||
| 15 | depends on OF | ||
| 16 | default USB_CHIPIDEA | ||
| 17 | |||
| 18 | config USB_CHIPIDEA_PCI | ||
| 19 | tristate | ||
| 20 | depends on PCI | ||
| 21 | default USB_CHIPIDEA | ||
| 22 | |||
| 13 | config USB_CHIPIDEA_UDC | 23 | config USB_CHIPIDEA_UDC |
| 14 | bool "ChipIdea device controller" | 24 | bool "ChipIdea device controller" |
| 15 | depends on USB_GADGET | 25 | depends on USB_GADGET |
diff --git a/drivers/usb/chipidea/Makefile b/drivers/usb/chipidea/Makefile index 1fc86a2ca22d..4decb12f2578 100644 --- a/drivers/usb/chipidea/Makefile +++ b/drivers/usb/chipidea/Makefile | |||
| @@ -14,11 +14,6 @@ obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_usb2.o | |||
| 14 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_msm.o | 14 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_msm.o |
| 15 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_zevio.o | 15 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_zevio.o |
| 16 | 16 | ||
| 17 | # PCI doesn't provide stubs, need to check | 17 | obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o |
| 18 | ifneq ($(CONFIG_PCI),) | ||
| 19 | obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o | ||
| 20 | endif | ||
| 21 | 18 | ||
| 22 | ifneq ($(CONFIG_OF),) | 19 | obj-$(CONFIG_USB_CHIPIDEA_OF) += usbmisc_imx.o ci_hdrc_imx.o |
| 23 | obj-$(CONFIG_USB_CHIPIDEA) += usbmisc_imx.o ci_hdrc_imx.o | ||
| 24 | endif | ||
