config USB_MTK_HDRC
	tristate "MediaTek MUSB support"
	select USB_GADGET_SELECTED
	select USB_GADGET_DUALSPEED
	help
		Say Y here if your system has a high speed USB
		controller based on the MTK MUSB IP.  Then
		configure options to match your silicon and the board
		it's being used with, including the USB peripheral role,
		or the USB host role, or both.

config MTK_MUSB_QMU_SUPPORT
	bool "QMU Transfer mode of MediaTek MUSB"
	depends on USB_MTK_HDRC
	help
		Say Y here if your system has a QMU capability for USB
		controller based on the MTK MUSB IP.
		QMU is some kind of enhanced DMA mode by HW queeu rather
		than SW queue to reduce SW effort.

config USB_MTK_OTG
	bool "MediaTek MUSB OTG support"
	help
		Enable Mediatek USB Host OTG detection mechanism
		and USB-IF Compliance Test Program.
		1. IDDIG - OTG cable attachment detection.
		2. DRVVBUS - provides the VBUS for the attached devices

config USB_MTK_CHARGER_DETECT
	bool "MediaTek MUSB charger detect"
	depends on MTK_USBFSH
	help
		If make port1 enable in mt8163, please open the config.
		When port0 is using, plug in device to port1,
		port0 will get the disconnect. fix the issue, need open
		the config.

config MTK_UART_USB_SWITCH
	bool "MediaTek UART could use USB DATA pins"
	help
		This is a feature for debugging purpose.
		It uses the USB TX/RX as UART TX/RX.
		A USB to UART cable is needed to use this feature.
		Using the UI in the EngineerMode to switch between USB and UART mode.
		After switching to UART mode and connect to the PC with a USB to UART cable,
		you can connect to a Virtual COM port on the PC and get the log output to the UART console.

config MTK_MUSB_CARPLAY_SUPPORT
	bool "MediaTek MUSB Carplay support"
	help
		Say Y here if your want to use carplay.

config MTK_MUSB_SW_WITCH_MODE
	bool "MediaTek MUSB provide user space interface to switch usb role without id pin"
	help
		Usb host/device/idle mode switch through command, not only depend on ID pin.
		Say Y here if your want to use software to switch usb mode.

config MTK_MUSB_PORT0_LOWPOWER_MODE
	bool "MediaTek MUSB PORT0 low power mode support"
	help
		Dynamic control the usb port0 clock when PORT1 not exist.
		Say Y here if your want to enable port0 low power mode for saving power.

config USB_VBUSDET_IN_GPIO
	bool "MediaTek MUSB is used to detect vBus event via GPIO"
	help
		Some application have no PMIC design or vBus is not connected with VCDT in PMIC,
		therefore. MTK MUSB is used to use one GPIO input to detect vBus event.
		Actually, we need other GPIO pin to manipulate vBus power supply for Host role,
		and the GPIO will make vBus power off when device role.
		If unsure, say N.

config USB_PHYCHK_EXTCONN
	bool "MediaTek MUSB to detect USB external connector with phy test mode"
	help
		To detect USB simple external connector with MTK phy test mode.
		invoke mt_usb_phychk_extconn to get usb external connector
		on the beginning of vBus detected. It will switch to phy test mode
		to check simple external connector, then switch back usb phy normal mode
		for usb device role connect.
		If unsure, say N.

config MTK_MUSB_BIND_DEV_EP
	bool "MediaTek MUSB bind device endpoints to MUSB endpoints"
	help
		Bind device endpoints to MUSB endpoints
		Unbind endpoints when device disconnect
