Kconfig (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | Kconfig (b95d0899c8bfa1346dd195e868c48008d888bac9) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2 3config USB_DWC2 4 tristate "DesignWare USB2 DRD Core Support" 5 depends on HAS_DMA 6 depends on USB || USB_GADGET 7 depends on HAS_IOMEM 8 select USB_ROLE_SWITCH --- 7 unchanged lines hidden (view full) --- 16 called dwc2_pci.ko, and the platform interface module (for 17 controllers directly connected to the CPU) will be called 18 dwc2_platform.ko. For all modes(host, gadget and dual-role), there 19 will be an additional module named dwc2.ko. 20 21if USB_DWC2 22 23choice | 1# SPDX-License-Identifier: GPL-2.0 2 3config USB_DWC2 4 tristate "DesignWare USB2 DRD Core Support" 5 depends on HAS_DMA 6 depends on USB || USB_GADGET 7 depends on HAS_IOMEM 8 select USB_ROLE_SWITCH --- 7 unchanged lines hidden (view full) --- 16 called dwc2_pci.ko, and the platform interface module (for 17 controllers directly connected to the CPU) will be called 18 dwc2_platform.ko. For all modes(host, gadget and dual-role), there 19 will be an additional module named dwc2.ko. 20 21if USB_DWC2 22 23choice |
24 bool "DWC2 Mode Selection" | 24 prompt "DWC2 Mode Selection" |
25 default USB_DWC2_DUAL_ROLE if (USB && USB_GADGET) 26 default USB_DWC2_HOST if (USB && !USB_GADGET) 27 default USB_DWC2_PERIPHERAL if (!USB && USB_GADGET) 28 29config USB_DWC2_HOST 30 bool "Host only mode" 31 depends on USB=y || (USB_DWC2=m && USB) 32 help --- 65 unchanged lines hidden --- | 25 default USB_DWC2_DUAL_ROLE if (USB && USB_GADGET) 26 default USB_DWC2_HOST if (USB && !USB_GADGET) 27 default USB_DWC2_PERIPHERAL if (!USB && USB_GADGET) 28 29config USB_DWC2_HOST 30 bool "Host only mode" 31 depends on USB=y || (USB_DWC2=m && USB) 32 help --- 65 unchanged lines hidden --- |