1# Copyright (c) 2023 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4config UDC_DWC2 5 bool "DWC2 USB device controller driver" 6 default y 7 depends on DT_HAS_SNPS_DWC2_ENABLED 8 select NRFS if NRFS_HAS_VBUS_DETECTOR_SERVICE 9 select NRFS_VBUS_DETECTOR_SERVICE_ENABLED if NRFS_HAS_VBUS_DETECTOR_SERVICE 10 help 11 DWC2 USB device controller driver. 12 13config UDC_DWC2_DMA 14 bool "DWC2 USB DMA support" 15 default y 16 depends on UDC_DWC2 17 help 18 Enable Buffer DMA if DWC2 USB controller supports Internal DMA. 19 20config UDC_DWC2_STACK_SIZE 21 int "UDC DWC2 driver internal thread stack size" 22 depends on UDC_DWC2 23 default 512 24 help 25 DWC2 driver internal thread stack size. 26 27config UDC_DWC2_THREAD_PRIORITY 28 int "UDC DWC2 driver thread priority" 29 depends on UDC_DWC2 30 default 8 31 help 32 DWC2 driver thread priority. 33 34config UDC_DWC2_MAX_QMESSAGES 35 int "UDC DWC2 maximum number of ISR event messages" 36 depends on UDC_DWC2 37 range 4 64 38 default 8 39 help 40 DWC2 maximum number of ISR event messages. 41