Skip to content

Commit 0018e8d

Browse files
jfischer-nocfriedt
authored andcommitted
drivers: udc: cleanup depends in Kconfig.dwc2
Factor out UDC_DWC2 dependency. Signed-off-by: Johann Fischer <[email protected]>
1 parent c51de9a commit 0018e8d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

drivers/usb/udc/Kconfig.dwc2

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ config UDC_DWC2
1212
help
1313
DWC2 USB device controller driver.
1414

15+
if UDC_DWC2
16+
1517
config UDC_DWC2_DMA
1618
bool "DWC2 USB DMA support"
1719
default y
18-
depends on UDC_DWC2
1920
help
2021
Enable Buffer DMA if DWC2 USB controller supports Internal DMA.
2122

2223
config UDC_DWC2_HIBERNATION
2324
bool "DWC2 USB Hibernation support"
2425
default y
25-
depends on UDC_DWC2
2626
help
2727
Enable Hibernation if DWC2 USB controller supports hibernation.
2828

2929
config UDC_DWC2_PTI
3030
bool "DWC2 USB Periodic Transfer Interrupt"
31-
depends on UDC_DWC2
3231
help
3332
Ignore frame number when scheduling isochronous endpoints. Use this
3433
when isochronous transfers should finish only after receiving token
@@ -38,24 +37,23 @@ config UDC_DWC2_PTI
3837

3938
config UDC_DWC2_STACK_SIZE
4039
int "UDC DWC2 driver internal thread stack size"
41-
depends on UDC_DWC2
4240
default 512
4341
help
4442
DWC2 driver internal thread stack size.
4543

4644
config UDC_DWC2_THREAD_PRIORITY
4745
int "UDC DWC2 driver thread priority"
48-
depends on UDC_DWC2
4946
default 8
5047
help
5148
DWC2 driver thread priority.
5249

5350
config UDC_DWC2_USBHS_VBUS_READY_TIMEOUT
5451
int "UDC DWC2 USBHS VBUS ready event timeout in ms"
55-
depends on UDC_DWC2
5652
depends on NRFS_HAS_VBUS_DETECTOR_SERVICE
5753
default 0
5854
help
5955
UDC DWC2 USBHS VBUS ready event timeout. If the VBUS is not ready
6056
and the Nordic USBHS controller is used, the udc_enable() is
6157
blocked for this amount of time. Set it to zero to wait forever.
58+
59+
endif # UDC_DWC2

0 commit comments

Comments
 (0)