162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciconfig USB_FOTG210
462306a36Sopenharmony_ci	tristate "Faraday FOTG210 USB2 Dual Role controller"
562306a36Sopenharmony_ci	depends on USB || USB_GADGET
662306a36Sopenharmony_ci	depends on HAS_DMA && HAS_IOMEM
762306a36Sopenharmony_ci	depends on ARCH_GEMINI || COMPILE_TEST
862306a36Sopenharmony_ci	default ARCH_GEMINI
962306a36Sopenharmony_ci	select MFD_SYSCON
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  Faraday FOTG210 is a dual-mode USB controller that can act
1262306a36Sopenharmony_ci	  in both host controller and peripheral controller mode.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciif USB_FOTG210
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciconfig USB_FOTG210_HCD
1762306a36Sopenharmony_ci	bool "Faraday FOTG210 USB Host Controller support"
1862306a36Sopenharmony_ci	depends on USB=y || USB=USB_FOTG210
1962306a36Sopenharmony_ci	help
2062306a36Sopenharmony_ci	  Faraday FOTG210 is an OTG controller which can be configured as
2162306a36Sopenharmony_ci	  an USB2.0 host. It is designed to meet USB2.0 EHCI specification
2262306a36Sopenharmony_ci	  with minor modification.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the
2562306a36Sopenharmony_ci	  module will be called fotg210-hcd.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciconfig USB_FOTG210_UDC
2862306a36Sopenharmony_ci	depends on USB_GADGET=y || USB_GADGET=USB_FOTG210
2962306a36Sopenharmony_ci	bool "Faraday FOTG210 USB Peripheral Controller support"
3062306a36Sopenharmony_ci	help
3162306a36Sopenharmony_ci	   Faraday USB2.0 OTG controller which can be configured as
3262306a36Sopenharmony_ci	   high speed or full speed USB device. This driver supports
3362306a36Sopenharmony_ci	   Bulk Transfer so far.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci	   Say "y" to link the driver statically, or "m" to build a
3662306a36Sopenharmony_ci	   dynamically linked module called "fotg210-udc".
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciendif
39