mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
The Faraday Technology FOTG210 USB2 Dual Role Controller is only present
on Cortina Systems Gemini SoCs. Hence add a dependency on ARCH_GEMINI,
to prevent asking the user about its drivers when configuring a kernel
without Cortina Systems Gemini SoC support.
Fixes: 1dd33a9f1b ("usb: fotg210: Collect pieces of dual mode controller")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/a989b3b798ecaf3b45f35160e30e605636d66a77.1669044086.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
config USB_FOTG210
|
|
tristate "Faraday FOTG210 USB2 Dual Role controller"
|
|
depends on USB || USB_GADGET
|
|
depends on HAS_DMA && HAS_IOMEM
|
|
depends on ARCH_GEMINI || COMPILE_TEST
|
|
default ARCH_GEMINI
|
|
select MFD_SYSCON
|
|
help
|
|
Faraday FOTG210 is a dual-mode USB controller that can act
|
|
in both host controller and peripheral controller mode.
|
|
|
|
if USB_FOTG210
|
|
|
|
config USB_FOTG210_HCD
|
|
bool "Faraday FOTG210 USB Host Controller support"
|
|
depends on USB=y || USB=USB_FOTG210
|
|
help
|
|
Faraday FOTG210 is an OTG controller which can be configured as
|
|
an USB2.0 host. It is designed to meet USB2.0 EHCI specification
|
|
with minor modification.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called fotg210-hcd.
|
|
|
|
config USB_FOTG210_UDC
|
|
depends on USB_GADGET=y || USB_GADGET=USB_FOTG210
|
|
bool "Faraday FOTG210 USB Peripheral Controller support"
|
|
help
|
|
Faraday USB2.0 OTG controller which can be configured as
|
|
high speed or full speed USB device. This driver suppports
|
|
Bulk Transfer so far.
|
|
|
|
Say "y" to link the driver statically, or "m" to build a
|
|
dynamically linked module called "fotg210-udc".
|
|
|
|
endif
|