diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-08 04:42:40 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-21 15:07:29 -0400 |
commit | aea8928aba7d7ee2e6245d44ba7de4c04fc90559 (patch) | |
tree | 066cbcea7f2cc4a88bfe9e1d80c5174d9b41bb06 /drivers/usb/dwc3/Kconfig | |
parent | 1d57de306e1f3e73c607811a974f6662162e5df6 (diff) |
usb: dwc3: add glue layer dependencies
Glue layers for the DWC3 driver only make sense on specific platforms.
Add dependencies so that they are not built where they aren't needed.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/Kconfig')
-rw-r--r-- | drivers/usb/dwc3/Kconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index e2c730fc9a90..8eb996e4f058 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig | |||
@@ -44,7 +44,7 @@ comment "Platform Glue Driver Support" | |||
44 | 44 | ||
45 | config USB_DWC3_OMAP | 45 | config USB_DWC3_OMAP |
46 | tristate "Texas Instruments OMAP5 and similar Platforms" | 46 | tristate "Texas Instruments OMAP5 and similar Platforms" |
47 | depends on EXTCON | 47 | depends on EXTCON && (ARCH_OMAP2PLUS || COMPILE_TEST) |
48 | default USB_DWC3 | 48 | default USB_DWC3 |
49 | help | 49 | help |
50 | Some platforms from Texas Instruments like OMAP5, DRA7xxx and | 50 | Some platforms from Texas Instruments like OMAP5, DRA7xxx and |
@@ -54,6 +54,7 @@ config USB_DWC3_OMAP | |||
54 | 54 | ||
55 | config USB_DWC3_EXYNOS | 55 | config USB_DWC3_EXYNOS |
56 | tristate "Samsung Exynos Platform" | 56 | tristate "Samsung Exynos Platform" |
57 | depends on ARCH_EXYNOS || COMPILE_TEST | ||
57 | default USB_DWC3 | 58 | default USB_DWC3 |
58 | help | 59 | help |
59 | Recent Exynos5 SoCs ship with one DesignWare Core USB3 IP inside, | 60 | Recent Exynos5 SoCs ship with one DesignWare Core USB3 IP inside, |
@@ -72,6 +73,7 @@ config USB_DWC3_PCI | |||
72 | 73 | ||
73 | config USB_DWC3_KEYSTONE | 74 | config USB_DWC3_KEYSTONE |
74 | tristate "Texas Instruments Keystone2 Platforms" | 75 | tristate "Texas Instruments Keystone2 Platforms" |
76 | depends on ARCH_KEYSTONE || COMPILE_TEST | ||
75 | default USB_DWC3 | 77 | default USB_DWC3 |
76 | help | 78 | help |
77 | Support of USB2/3 functionality in TI Keystone2 platforms. | 79 | Support of USB2/3 functionality in TI Keystone2 platforms. |