diff options
-rw-r--r-- | drivers/usb/Kconfig | 35 | ||||
-rw-r--r-- | drivers/usb/common/Kconfig | 38 |
2 files changed, 39 insertions, 34 deletions
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index fc1c66af6f0a..275568abc670 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig | |||
@@ -36,8 +36,7 @@ menuconfig USB_SUPPORT | |||
36 | 36 | ||
37 | if USB_SUPPORT | 37 | if USB_SUPPORT |
38 | 38 | ||
39 | config USB_COMMON | 39 | source "drivers/usb/common/Kconfig" |
40 | tristate | ||
41 | 40 | ||
42 | config USB_ARCH_HAS_HCD | 41 | config USB_ARCH_HAS_HCD |
43 | def_bool y | 42 | def_bool y |
@@ -175,36 +174,4 @@ source "drivers/usb/typec/Kconfig" | |||
175 | 174 | ||
176 | source "drivers/usb/roles/Kconfig" | 175 | source "drivers/usb/roles/Kconfig" |
177 | 176 | ||
178 | config USB_LED_TRIG | ||
179 | bool "USB LED Triggers" | ||
180 | depends on LEDS_CLASS && LEDS_TRIGGERS | ||
181 | select USB_COMMON | ||
182 | help | ||
183 | This option adds LED triggers for USB host and/or gadget activity. | ||
184 | |||
185 | Say Y here if you are working on a system with led-class supported | ||
186 | LEDs and you want to use them as activity indicators for USB host or | ||
187 | gadget. | ||
188 | |||
189 | config USB_ULPI_BUS | ||
190 | tristate "USB ULPI PHY interface support" | ||
191 | select USB_COMMON | ||
192 | help | ||
193 | UTMI+ Low Pin Interface (ULPI) is specification for a commonly used | ||
194 | USB 2.0 PHY interface. The ULPI specification defines a standard set | ||
195 | of registers that can be used to detect the vendor and product which | ||
196 | allows ULPI to be handled as a bus. This module is the driver for that | ||
197 | bus. | ||
198 | |||
199 | The ULPI interfaces (the buses) are registered by the drivers for USB | ||
200 | controllers which support ULPI register access and have ULPI PHY | ||
201 | attached to them. The ULPI PHY drivers themselves are normal PHY | ||
202 | drivers. | ||
203 | |||
204 | ULPI PHYs provide often functions such as ADP sensing/probing (OTG | ||
205 | protocol) and USB charger detection. | ||
206 | |||
207 | To compile this driver as a module, choose M here: the module will | ||
208 | be called ulpi. | ||
209 | |||
210 | endif # USB_SUPPORT | 177 | endif # USB_SUPPORT |
diff --git a/drivers/usb/common/Kconfig b/drivers/usb/common/Kconfig new file mode 100644 index 000000000000..848545b099cf --- /dev/null +++ b/drivers/usb/common/Kconfig | |||
@@ -0,0 +1,38 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | ||
2 | |||
3 | config USB_COMMON | ||
4 | tristate | ||
5 | |||
6 | |||
7 | config USB_LED_TRIG | ||
8 | bool "USB LED Triggers" | ||
9 | depends on LEDS_CLASS && LEDS_TRIGGERS | ||
10 | select USB_COMMON | ||
11 | help | ||
12 | This option adds LED triggers for USB host and/or gadget activity. | ||
13 | |||
14 | Say Y here if you are working on a system with led-class supported | ||
15 | LEDs and you want to use them as activity indicators for USB host or | ||
16 | gadget. | ||
17 | |||
18 | config USB_ULPI_BUS | ||
19 | tristate "USB ULPI PHY interface support" | ||
20 | select USB_COMMON | ||
21 | help | ||
22 | UTMI+ Low Pin Interface (ULPI) is specification for a commonly used | ||
23 | USB 2.0 PHY interface. The ULPI specification defines a standard set | ||
24 | of registers that can be used to detect the vendor and product which | ||
25 | allows ULPI to be handled as a bus. This module is the driver for that | ||
26 | bus. | ||
27 | |||
28 | The ULPI interfaces (the buses) are registered by the drivers for USB | ||
29 | controllers which support ULPI register access and have ULPI PHY | ||
30 | attached to them. The ULPI PHY drivers themselves are normal PHY | ||
31 | drivers. | ||
32 | |||
33 | ULPI PHYs provide often functions such as ADP sensing/probing (OTG | ||
34 | protocol) and USB charger detection. | ||
35 | |||
36 | To compile this driver as a module, choose M here: the module will | ||
37 | be called ulpi. | ||
38 | |||