18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciconfig USB_COMMON
48c2ecf20Sopenharmony_ci	tristate
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciconfig USB_LED_TRIG
88c2ecf20Sopenharmony_ci	bool "USB LED Triggers"
98c2ecf20Sopenharmony_ci	depends on LEDS_CLASS && USB_COMMON && LEDS_TRIGGERS
108c2ecf20Sopenharmony_ci	help
118c2ecf20Sopenharmony_ci	  This option adds LED triggers for USB host and/or gadget activity.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci	  Say Y here if you are working on a system with led-class supported
148c2ecf20Sopenharmony_ci	  LEDs and you want to use them as activity indicators for USB host or
158c2ecf20Sopenharmony_ci	  gadget.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciconfig USB_ULPI_BUS
188c2ecf20Sopenharmony_ci	tristate "USB ULPI PHY interface support"
198c2ecf20Sopenharmony_ci	select USB_COMMON
208c2ecf20Sopenharmony_ci	help
218c2ecf20Sopenharmony_ci	  UTMI+ Low Pin Interface (ULPI) is specification for a commonly used
228c2ecf20Sopenharmony_ci	  USB 2.0 PHY interface. The ULPI specification defines a standard set
238c2ecf20Sopenharmony_ci	  of registers that can be used to detect the vendor and product which
248c2ecf20Sopenharmony_ci	  allows ULPI to be handled as a bus. This module is the driver for that
258c2ecf20Sopenharmony_ci	  bus.
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	  The ULPI interfaces (the buses) are registered by the drivers for USB
288c2ecf20Sopenharmony_ci	  controllers which support ULPI register access and have ULPI PHY
298c2ecf20Sopenharmony_ci	  attached to them. The ULPI PHY drivers themselves are normal PHY
308c2ecf20Sopenharmony_ci	  drivers.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	  ULPI PHYs provide often functions such as ADP sensing/probing (OTG
338c2ecf20Sopenharmony_ci	  protocol) and USB charger detection.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module will
368c2ecf20Sopenharmony_ci	  be called ulpi.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciconfig USB_CONN_GPIO
398c2ecf20Sopenharmony_ci	tristate "USB GPIO Based Connection Detection Driver"
408c2ecf20Sopenharmony_ci	depends on GPIOLIB
418c2ecf20Sopenharmony_ci	select USB_ROLE_SWITCH
428c2ecf20Sopenharmony_ci	select POWER_SUPPLY
438c2ecf20Sopenharmony_ci	help
448c2ecf20Sopenharmony_ci	  The driver supports USB role switch between host and device via GPIO
458c2ecf20Sopenharmony_ci	  based USB cable detection, used typically if an input GPIO is used
468c2ecf20Sopenharmony_ci	  to detect USB ID pin, and another input GPIO may be also used to detect
478c2ecf20Sopenharmony_ci	  Vbus pin at the same time, it also can be used to enable/disable
488c2ecf20Sopenharmony_ci	  device if an input GPIO is only used to detect Vbus pin.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci	  To compile the driver as a module, choose M here: the module will
518c2ecf20Sopenharmony_ci	  be called usb-conn-gpio.ko
52