18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA
48c2ecf20Sopenharmony_ci	tristate "ChipIdea Highspeed Dual Role Controller"
58c2ecf20Sopenharmony_ci	depends on ((USB_EHCI_HCD && USB_GADGET) || (USB_EHCI_HCD && !USB_GADGET) || (!USB_EHCI_HCD && USB_GADGET)) && HAS_DMA
68c2ecf20Sopenharmony_ci	select EXTCON
78c2ecf20Sopenharmony_ci	select RESET_CONTROLLER
88c2ecf20Sopenharmony_ci	select USB_ULPI_BUS
98c2ecf20Sopenharmony_ci	select USB_ROLE_SWITCH
108c2ecf20Sopenharmony_ci	select USB_TEGRA_PHY if ARCH_TEGRA
118c2ecf20Sopenharmony_ci	help
128c2ecf20Sopenharmony_ci	  Say Y here if your system has a dual role high speed USB
138c2ecf20Sopenharmony_ci	  controller based on ChipIdea silicon IP. It supports:
148c2ecf20Sopenharmony_ci	  Dual-role switch (ID, OTG FSM, sysfs), Host-only, and
158c2ecf20Sopenharmony_ci	  Peripheral-only.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci	  When compiled dynamically, the module will be called ci_hdrc.ko.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciif USB_CHIPIDEA
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_UDC
228c2ecf20Sopenharmony_ci	bool "ChipIdea device controller"
238c2ecf20Sopenharmony_ci	depends on USB_GADGET
248c2ecf20Sopenharmony_ci	help
258c2ecf20Sopenharmony_ci	  Say Y here to enable device controller functionality of the
268c2ecf20Sopenharmony_ci	  ChipIdea driver.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_HOST
298c2ecf20Sopenharmony_ci	bool "ChipIdea host controller"
308c2ecf20Sopenharmony_ci	depends on USB_EHCI_HCD
318c2ecf20Sopenharmony_ci	select USB_EHCI_ROOT_HUB_TT
328c2ecf20Sopenharmony_ci	help
338c2ecf20Sopenharmony_ci	  Say Y here to enable host controller functionality of the
348c2ecf20Sopenharmony_ci	  ChipIdea driver.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_PCI
378c2ecf20Sopenharmony_ci	tristate "Enable PCI glue driver" if EMBEDDED
388c2ecf20Sopenharmony_ci	depends on USB_PCI
398c2ecf20Sopenharmony_ci	depends on NOP_USB_XCEIV
408c2ecf20Sopenharmony_ci	default USB_CHIPIDEA
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_MSM
438c2ecf20Sopenharmony_ci	tristate "Enable MSM hsusb glue driver" if EMBEDDED
448c2ecf20Sopenharmony_ci	default USB_CHIPIDEA
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_IMX
478c2ecf20Sopenharmony_ci	tristate "Enable i.MX USB glue driver" if EMBEDDED
488c2ecf20Sopenharmony_ci	depends on OF
498c2ecf20Sopenharmony_ci	default USB_CHIPIDEA
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_GENERIC
528c2ecf20Sopenharmony_ci	tristate "Enable generic USB2 glue driver" if EMBEDDED
538c2ecf20Sopenharmony_ci	default USB_CHIPIDEA
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciconfig USB_CHIPIDEA_TEGRA
568c2ecf20Sopenharmony_ci	tristate "Enable Tegra UDC glue driver" if EMBEDDED
578c2ecf20Sopenharmony_ci	depends on OF
588c2ecf20Sopenharmony_ci	depends on USB_CHIPIDEA_UDC
598c2ecf20Sopenharmony_ci	default USB_CHIPIDEA
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ciendif
62