Save power when the bus is suspended by entering hibernation if hibernation support is enabled and controller supports hibernation. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
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_HIBERNATION
|
|
bool "DWC2 USB Hibernation support"
|
|
default y
|
|
depends on UDC_DWC2
|
|
help
|
|
Enable Hibernation if DWC2 USB controller supports hibernation.
|
|
|
|
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.
|