zephyr/drivers/usb/udc/Kconfig.dwc2

41 lines
997 B
Plaintext

# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config UDC_DWC2
bool "DWC2 USB device controller driver"
default y
depends on DT_HAS_SNPS_DWC2_ENABLED
select NRFS if NRFS_HAS_VBUS_DETECTOR_SERVICE
select NRFS_VBUS_DETECTOR_SERVICE_ENABLED if NRFS_HAS_VBUS_DETECTOR_SERVICE
help
DWC2 USB device controller driver.
config UDC_DWC2_DMA
bool "DWC2 USB DMA support"
default y
depends on UDC_DWC2
help
Enable Buffer DMA if DWC2 USB controller supports Internal DMA.
config UDC_DWC2_STACK_SIZE
int "UDC DWC2 driver internal thread stack size"
depends on UDC_DWC2
default 512
help
DWC2 driver internal thread stack size.
config UDC_DWC2_THREAD_PRIORITY
int "UDC DWC2 driver thread priority"
depends on UDC_DWC2
default 8
help
DWC2 driver thread priority.
config UDC_DWC2_MAX_QMESSAGES
int "UDC DWC2 maximum number of ISR event messages"
depends on UDC_DWC2
range 4 64
default 8
help
DWC2 maximum number of ISR event messages.