#
# USB OTG infrastructure may be needed for peripheral-only, host-only,
# or OTG-capable configurations when OTG transceivers or controllers
# are used.
#

comment "OTG and related infrastructure"

config USB_OTG_UTILS
	bool
	help
	  Select this to make sure the build includes objects from
	  the OTG infrastructure directory.

if USB || USB_GADGET

#
# USB Transceiver Drivers
#
config USB_GPIO_VBUS
	tristate "GPIO based peripheral-only VBUS sensing 'transceiver'"
	depends on GENERIC_GPIO
	select USB_OTG_UTILS
	help
	  Provides simple GPIO VBUS sensing for controllers with an
	  internal transceiver via the otg_transceiver interface, and
	  optionally control of a D+ pullup GPIO as well as a VBUS
	  current limit regulator.

config ISP1301_OMAP
	tristate "Philips ISP1301 with OMAP OTG"
	depends on I2C && ARCH_OMAP_OTG
	select USB_OTG_UTILS
	help
	  If you say yes here you get support for the Philips ISP1301
	  USB-On-The-Go transceiver working with the OMAP OTG controller.
	  The ISP1301 is a full speed USB  transceiver which is used in
	  products including H2, H3, and H4 development boards for Texas
	  Instruments OMAP processors.

	  This driver can also be built as a module.  If so, the module
	  will be called isp1301_omap.

config TWL4030_USB
	tristate "TWL4030 USB Transceiver Driver"
	depends on TWL4030_CORE && REGULATOR_TWL4030
	select USB_OTG_UTILS
	help
	  Enable this to support the USB OTG transceiver on TWL4030
	  family chips (including the TWL5030 and TPS659x0 devices).
	  This transceiver supports high and full speed devices plus,
	  in host mode, low speed.

config USB_MSM_OTG_72K
	bool "OTG support for Qualcomm on-chip USB controller"
	depends on ARCH_MSM
	select USB_OTG_UTILS
	default USB_MSM_72K
	help
	  Enable this to support the USB OTG transceiver on MSM chips. It
	  handles PHY initialization, clock management, low power mode and
	  workarounds required after resetting the hardware. This driver is
	  required for even peripheral only or host only mode configuration.
	  Supports SRP and HNP when both gadget and Host are selected.

config MSM_OTG_ENABLE_A_WAIT_BCON_TIMEOUT
	bool "Enable A-device timeout for B-device connection"
	depends on USB_MSM_OTG_72K
	default n
	help
	   OTG specification allows A-device to turn off VBUS if B-device
	   fails to signal connect event before TA_WAIT_BCON (1.1 - 30 sec).
	   SRP detection is enabled and hardware is put into low power mode
	   upon this timeout.

	   If you say yes, VBUS will be turned off if B-device does not signal
	   connect in 30 sec. Otherwise VBUS is not turned off when Micro-A
	   cable is connected. But hardware is put into LPM. Say no if leakage
	   currents in your system are minimum.

config USB_OTG_NOTIFICATION
	bool "OTG Device notification"
	depends on USB_MSM_OTG_72K
	default n
	help
	  Provides the functions to notify the USB B-device is conneted and
	  disconnected along with the device information such as the device
	  is supported or unsupported via sysfs. Also, the device error such as
	  vbus drop and ACA device events are notified as well.

config USB_MSM_ACA
	bool "Support for Accessory Charger Adapter (ACA)"
	depends on USB_MSM_OTG_72K && USB_OTG
	default n
	help
	  Accesory Charger Adapter is a charger specified in USB Battery
	  Charging Specification(1.1). It enables OTG devices to charge
	  while operating as a host or peripheral at the same time.

config NOP_USB_XCEIV
	tristate "NOP USB Transceiver Driver"
	select USB_OTG_UTILS
	help
	 this driver is to be used by all the usb transceiver which are either
	 built-in with usb ip or which are autonomous and doesn't require any
	 phy programming such as ISP1x04 etc.

endif # USB || OTG
