xref: /openbmc/linux/drivers/usb/chipidea/Kconfig (revision 7f877908)
1# SPDX-License-Identifier: GPL-2.0
2
3config USB_CHIPIDEA
4	tristate "ChipIdea Highspeed Dual Role Controller"
5	depends on ((USB_EHCI_HCD && USB_GADGET) || (USB_EHCI_HCD && !USB_GADGET) || (!USB_EHCI_HCD && USB_GADGET)) && HAS_DMA
6	select EXTCON
7	select RESET_CONTROLLER
8	select USB_ULPI_BUS
9	select USB_ROLE_SWITCH
10	select USB_TEGRA_PHY if ARCH_TEGRA
11	help
12	  Say Y here if your system has a dual role high speed USB
13	  controller based on ChipIdea silicon IP. It supports:
14	  Dual-role switch (ID, OTG FSM, sysfs), Host-only, and
15	  Peripheral-only.
16
17	  When compiled dynamically, the module will be called ci_hdrc.ko.
18
19if USB_CHIPIDEA
20
21config USB_CHIPIDEA_OF
22	tristate
23	depends on OF
24	default USB_CHIPIDEA
25
26config USB_CHIPIDEA_PCI
27	tristate
28	depends on USB_PCI
29	depends on NOP_USB_XCEIV
30	default USB_CHIPIDEA
31
32config USB_CHIPIDEA_UDC
33	bool "ChipIdea device controller"
34	depends on USB_GADGET
35	help
36	  Say Y here to enable device controller functionality of the
37	  ChipIdea driver.
38
39config USB_CHIPIDEA_HOST
40	bool "ChipIdea host controller"
41	depends on USB_EHCI_HCD
42	select USB_EHCI_ROOT_HUB_TT
43	help
44	  Say Y here to enable host controller functionality of the
45	  ChipIdea driver.
46endif
47