aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2019-08-29 05:22:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-03 13:00:39 -0400
commit12b591bccc463307a21d925c19e7f61982902e08 (patch)
tree12a2b5ca9a9da6d2b74a8ee5e9eeb5fe8d34335b
parent6fadd72943b80ff5bef175aacc2458c8a9ee3dbc (diff)
usb: common: create Kconfig file
Create Kconfig file for USB common core, and move USB_LED_TRIG and USB_ULPI_BUS configs into the new file from the parent Kconfig, it will help to add new configs later. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/1567070558-29417-10-git-send-email-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/Kconfig35
-rw-r--r--drivers/usb/common/Kconfig38
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
37if USB_SUPPORT 37if USB_SUPPORT
38 38
39config USB_COMMON 39source "drivers/usb/common/Kconfig"
40 tristate
41 40
42config USB_ARCH_HAS_HCD 41config USB_ARCH_HAS_HCD
43 def_bool y 42 def_bool y
@@ -175,36 +174,4 @@ source "drivers/usb/typec/Kconfig"
175 174
176source "drivers/usb/roles/Kconfig" 175source "drivers/usb/roles/Kconfig"
177 176
178config 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
189config 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
210endif # USB_SUPPORT 177endif # 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
3config USB_COMMON
4 tristate
5
6
7config 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
18config 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