mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
be5c0608b8
As the deadline for migration to DM_USB, when using a USB host controller has now gone two years past the deadline, enforce migration. This is done by: - Ensuring that all host controller options (other than the very legacy old MUSB ones) now select USB_HOST. USB_HOST now enforces DM_USB and OF_CONTROL. - Remove other parts of Kconfig logic that had platforms pick DM_USB. - To keep Kconfig happy, have some select statements test for USB_HOST as well. - Re-order some Kconfig entries and menus so that we can cleanly pick host or gadget roles. For the various HCD options that have platform glue options, group them together and update dependencies in some cases. - As SPL_DM_USB is not required, on platforms that had not yet enabled it, disable it. Cc: Marek Vasut <marex@denx.de> Cc: Icenowy Zheng <icenowy@aosc.io> Cc: Samuel Holland <samuel@sholland.org> Cc: FUKAUMI Naoki <naobsd@gmail.com> Cc: Andre Przywara <andre.przywara@arm.com> Cc: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Tom Rini <trini@konsulko.com>
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# For MTK USB3.0 IP
|
|
|
|
config USB_MTU3
|
|
bool "MediaTek USB3 Dual Role controller"
|
|
depends on USB_XHCI_HCD || USB_GADGET
|
|
depends on ARCH_MEDIATEK
|
|
help
|
|
Say Y here if your system runs on MediaTek SoCs with
|
|
Dual Role SuperSpeed USB controller. You can select usb
|
|
mode as peripheral role or host role.
|
|
|
|
If you don't know what this is, please say N.
|
|
|
|
if USB_MTU3
|
|
choice
|
|
bool "MTU3 Mode Selection"
|
|
default USB_MTU3_GADGET if USB_GADGET
|
|
default USB_MTU3_HOST if (USB_HOST && !USB_GADGET)
|
|
|
|
config USB_MTU3_HOST
|
|
bool "Host only mode"
|
|
depends on USB_XHCI_HCD
|
|
help
|
|
Select this when you want to use MTU3 in host mode only,
|
|
thereby the gadget feature will be regressed.
|
|
|
|
config USB_MTU3_GADGET
|
|
bool "Gadget only mode"
|
|
depends on USB_GADGET
|
|
select USB_GADGET_DUALSPEED
|
|
help
|
|
Select this when you want to use MTU3 in gadget mode only,
|
|
thereby the host feature will be regressed.
|
|
|
|
endchoice
|
|
|
|
config USB_MTU3_DEBUG
|
|
bool "Enable Debugging Messages"
|
|
help
|
|
Say Y here to enable debugging messages in the MTU3 Driver.
|
|
|
|
endif
|