diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-12-21 22:08:33 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-23 11:28:56 -0500 |
commit | 845c071b7853c0046693022f4e95c9cdd043e2db (patch) | |
tree | 7a15b9f0b90f1f7051b07ae44bf8d9f77259ad88 | |
parent | 12c8d64e29bb2cbcebe5606aab4d573b4be8606f (diff) |
usb: musb: Rework USB and USB_GADGET dependency
This USB controller can work in as host-only, gadget-only or dual-role
modes. Rework the dependency on the USB and USB_GADGET configs in order
to allow building the driver when !USB or !USG_GADGET.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/Kconfig | 4 | ||||
-rw-r--r-- | drivers/usb/musb/Kconfig | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 2642b8a11e05..a34fb9846417 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig | |||
@@ -94,8 +94,6 @@ source "drivers/usb/wusbcore/Kconfig" | |||
94 | 94 | ||
95 | source "drivers/usb/host/Kconfig" | 95 | source "drivers/usb/host/Kconfig" |
96 | 96 | ||
97 | source "drivers/usb/musb/Kconfig" | ||
98 | |||
99 | source "drivers/usb/renesas_usbhs/Kconfig" | 97 | source "drivers/usb/renesas_usbhs/Kconfig" |
100 | 98 | ||
101 | source "drivers/usb/class/Kconfig" | 99 | source "drivers/usb/class/Kconfig" |
@@ -106,6 +104,8 @@ source "drivers/usb/image/Kconfig" | |||
106 | 104 | ||
107 | endif | 105 | endif |
108 | 106 | ||
107 | source "drivers/usb/musb/Kconfig" | ||
108 | |||
109 | source "drivers/usb/dwc3/Kconfig" | 109 | source "drivers/usb/dwc3/Kconfig" |
110 | 110 | ||
111 | source "drivers/usb/chipidea/Kconfig" | 111 | source "drivers/usb/chipidea/Kconfig" |
diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 14d7e725c2ff..688dc8bb192d 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig | |||
@@ -6,7 +6,7 @@ | |||
6 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller | 6 | # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller |
7 | config USB_MUSB_HDRC | 7 | config USB_MUSB_HDRC |
8 | tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' | 8 | tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' |
9 | depends on USB_GADGET | 9 | depends on (USB || USB_GADGET) |
10 | help | 10 | help |
11 | Say Y here if your system has a dual role high speed USB | 11 | Say Y here if your system has a dual role high speed USB |
12 | controller based on the Mentor Graphics silicon IP. Then | 12 | controller based on the Mentor Graphics silicon IP. Then |
@@ -35,21 +35,21 @@ choice | |||
35 | 35 | ||
36 | config USB_MUSB_HOST | 36 | config USB_MUSB_HOST |
37 | bool "Host only mode" | 37 | bool "Host only mode" |
38 | depends on USB | 38 | depends on USB=y || USB=USB_MUSB_HDRC |
39 | help | 39 | help |
40 | Select this when you want to use MUSB in host mode only, | 40 | Select this when you want to use MUSB in host mode only, |
41 | thereby the gadget feature will be regressed. | 41 | thereby the gadget feature will be regressed. |
42 | 42 | ||
43 | config USB_MUSB_GADGET | 43 | config USB_MUSB_GADGET |
44 | bool "Gadget only mode" | 44 | bool "Gadget only mode" |
45 | depends on USB_GADGET | 45 | depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC |
46 | help | 46 | help |
47 | Select this when you want to use MUSB in gadget mode only, | 47 | Select this when you want to use MUSB in gadget mode only, |
48 | thereby the host feature will be regressed. | 48 | thereby the host feature will be regressed. |
49 | 49 | ||
50 | config USB_MUSB_DUAL_ROLE | 50 | config USB_MUSB_DUAL_ROLE |
51 | bool "Dual Role mode" | 51 | bool "Dual Role mode" |
52 | depends on (USB && USB_GADGET) | 52 | depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC)) |
53 | help | 53 | help |
54 | This is the default mode of working of MUSB controller where | 54 | This is the default mode of working of MUSB controller where |
55 | both host and gadget features are enabled. | 55 | both host and gadget features are enabled. |