xref: /openbmc/linux/drivers/usb/chipidea/Kconfig (revision 7d999a7d)
1cae8dc3bSGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2cae8dc3bSGreg Kroah-Hartman
3bc25a80dSAlexander Shishkinconfig USB_CHIPIDEA
4bc25a80dSAlexander Shishkin	tristate "ChipIdea Highspeed Dual Role Controller"
52c740336SGeert Uytterhoeven	depends on ((USB_EHCI_HCD && USB_GADGET) || (USB_EHCI_HCD && !USB_GADGET) || (!USB_EHCI_HCD && USB_GADGET)) && HAS_DMA
63ecb3e09SIvan T. Ivanov	select EXTCON
71b8fc5a5SStephen Boyd	select RESET_CONTROLLER
8a930d8bdSFabio Estevam	select USB_ULPI_BUS
905559f10SLi Jun	select USB_ROLE_SWITCH
10*7d999a7dSDmitry Osipenko	select USB_TEGRA_PHY if ARCH_TEGRA
11bc25a80dSAlexander Shishkin	help
12bc25a80dSAlexander Shishkin	  Say Y here if your system has a dual role high speed USB
13fb67cb00SPeter Chen	  controller based on ChipIdea silicon IP. It supports:
14fb67cb00SPeter Chen	  Dual-role switch (ID, OTG FSM, sysfs), Host-only, and
15fb67cb00SPeter Chen	  Peripheral-only.
16bc25a80dSAlexander Shishkin
172a53e060SChristoph Fritz	  When compiled dynamically, the module will be called ci_hdrc.ko.
18e443b333SAlexander Shishkin
19e443b333SAlexander Shishkinif USB_CHIPIDEA
20e443b333SAlexander Shishkin
21d728189dSAndy Shevchenkoconfig USB_CHIPIDEA_OF
22d728189dSAndy Shevchenko	tristate
23d728189dSAndy Shevchenko	depends on OF
24d728189dSAndy Shevchenko	default USB_CHIPIDEA
25d728189dSAndy Shevchenko
26d728189dSAndy Shevchenkoconfig USB_CHIPIDEA_PCI
27d728189dSAndy Shevchenko	tristate
282c93e790Syuan linyu	depends on USB_PCI
29db7869caSAndy Shevchenko	depends on NOP_USB_XCEIV
30d728189dSAndy Shevchenko	default USB_CHIPIDEA
31d728189dSAndy Shevchenko
32e443b333SAlexander Shishkinconfig USB_CHIPIDEA_UDC
33e443b333SAlexander Shishkin	bool "ChipIdea device controller"
34a0cfdc6bSLothar Waßmann	depends on USB_GADGET
35e443b333SAlexander Shishkin	help
36e443b333SAlexander Shishkin	  Say Y here to enable device controller functionality of the
37e443b333SAlexander Shishkin	  ChipIdea driver.
38e443b333SAlexander Shishkin
39eb70e5abSAlexander Shishkinconfig USB_CHIPIDEA_HOST
40eb70e5abSAlexander Shishkin	bool "ChipIdea host controller"
41a0cfdc6bSLothar Waßmann	depends on USB_EHCI_HCD
42ca72ae9bSRichard Zhao	select USB_EHCI_ROOT_HUB_TT
43eb70e5abSAlexander Shishkin	help
44eb70e5abSAlexander Shishkin	  Say Y here to enable host controller functionality of the
45eb70e5abSAlexander Shishkin	  ChipIdea driver.
46e443b333SAlexander Shishkinendif
47