162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciconfig USB_COMMON
462306a36Sopenharmony_ci	tristate
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciconfig USB_LED_TRIG
862306a36Sopenharmony_ci	bool "USB LED Triggers"
962306a36Sopenharmony_ci	depends on LEDS_CLASS && USB_COMMON && LEDS_TRIGGERS
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  This option adds LED triggers for USB host and/or gadget activity.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	  Say Y here if you are working on a system with led-class supported
1462306a36Sopenharmony_ci	  LEDs and you want to use them as activity indicators for USB host or
1562306a36Sopenharmony_ci	  gadget.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciconfig USB_ULPI_BUS
1862306a36Sopenharmony_ci	tristate "USB ULPI PHY interface support"
1962306a36Sopenharmony_ci	select USB_COMMON
2062306a36Sopenharmony_ci	help
2162306a36Sopenharmony_ci	  UTMI+ Low Pin Interface (ULPI) is specification for a commonly used
2262306a36Sopenharmony_ci	  USB 2.0 PHY interface. The ULPI specification defines a standard set
2362306a36Sopenharmony_ci	  of registers that can be used to detect the vendor and product which
2462306a36Sopenharmony_ci	  allows ULPI to be handled as a bus. This module is the driver for that
2562306a36Sopenharmony_ci	  bus.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	  The ULPI interfaces (the buses) are registered by the drivers for USB
2862306a36Sopenharmony_ci	  controllers which support ULPI register access and have ULPI PHY
2962306a36Sopenharmony_ci	  attached to them. The ULPI PHY drivers themselves are normal PHY
3062306a36Sopenharmony_ci	  drivers.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  ULPI PHYs provide often functions such as ADP sensing/probing (OTG
3362306a36Sopenharmony_ci	  protocol) and USB charger detection.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module will
3662306a36Sopenharmony_ci	  be called ulpi.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig USB_CONN_GPIO
3962306a36Sopenharmony_ci	tristate "USB GPIO Based Connection Detection Driver"
4062306a36Sopenharmony_ci	depends on GPIOLIB
4162306a36Sopenharmony_ci	select USB_ROLE_SWITCH
4262306a36Sopenharmony_ci	select POWER_SUPPLY
4362306a36Sopenharmony_ci	help
4462306a36Sopenharmony_ci	  The driver supports USB role switch between host and device via GPIO
4562306a36Sopenharmony_ci	  based USB cable detection, used typically if an input GPIO is used
4662306a36Sopenharmony_ci	  to detect USB ID pin, and another input GPIO may be also used to detect
4762306a36Sopenharmony_ci	  Vbus pin at the same time, it also can be used to enable/disable
4862306a36Sopenharmony_ci	  device if an input GPIO is only used to detect Vbus pin.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci	  To compile the driver as a module, choose M here: the module will
5162306a36Sopenharmony_ci	  be called usb-conn-gpio.ko
52