File tree Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ menuconfig UDC_DRIVER
11
11
12
12
if UDC_DRIVER
13
13
14
+ config UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
15
+ bool
16
+
17
+ config UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED
18
+ bool
19
+
14
20
config UDC_BUF_COUNT
15
21
int "Number of buffers in the pool"
16
22
range 16 256
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ config UDC_DWC2
5
5
bool "DWC2 USB device controller driver"
6
6
default y
7
7
depends on DT_HAS_SNPS_DWC2_ENABLED
8
+ select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
8
9
select NRFS if NRFS_HAS_VBUS_DETECTOR_SERVICE
9
10
select NRFS_VBUS_DETECTOR_SERVICE_ENABLED if NRFS_HAS_VBUS_DETECTOR_SERVICE
10
11
select EVENTS
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ config UDC_NXP_EHCI
5
5
bool "NXP MCUX USB EHCI Device controller driver"
6
6
default y
7
7
depends on DT_HAS_NXP_EHCI_ENABLED
8
+ select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
8
9
select PINCTRL
9
10
select NOCACHE_MEMORY if CPU_HAS_DCACHE
10
11
imply UDC_BUF_FORCE_NOCACHE
@@ -16,6 +17,7 @@ config UDC_NXP_IP3511
16
17
bool "NXP MCUX USB IP3511 Device controller driver"
17
18
default y
18
19
depends on DT_HAS_NXP_LPCIP3511_ENABLED
20
+ select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
19
21
select PINCTRL
20
22
imply UDC_WORKQUEUE
21
23
help
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ config UDC_SKELETON
5
5
bool "Skeleton for an USB device controller driver"
6
6
default y
7
7
depends on DT_HAS_ZEPHYR_UDC_SKELETON_ENABLED
8
+ select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
8
9
help
9
10
Skeleton for an USB device controller driver.
10
11
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ config UDC_VIRTUAL
6
6
select UVB
7
7
default y
8
8
depends on DT_HAS_ZEPHYR_UDC_VIRTUAL_ENABLED
9
+ select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
9
10
help
10
11
Virtual USB device controller driver.
11
12
Original file line number Diff line number Diff line change @@ -16,6 +16,26 @@ module = USBD
16
16
module-str = usbd
17
17
source "subsys/logging/Kconfig.template.log_config"
18
18
19
+ choice USBD_MAX_SPEED_CHOICE
20
+ prompt "Max supported connection speed"
21
+ default USBD_MAX_SPEED_HIGH if UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
22
+ default USBD_MAX_SPEED_FULL
23
+
24
+ config USBD_MAX_SPEED_HIGH
25
+ bool "High-Speed"
26
+ depends on UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
27
+ select UDC_DRIVER_HIGH_SPEED_SUPPORT_ENABLED
28
+
29
+ config USBD_MAX_SPEED_FULL
30
+ bool "Full-Speed"
31
+
32
+ endchoice
33
+
34
+ config USBD_MAX_SPEED
35
+ int
36
+ default 0 if USBD_MAX_SPEED_FULL
37
+ default 1 if USBD_MAX_SPEED_HIGH
38
+
19
39
config USBD_SHELL
20
40
bool "USB device shell"
21
41
depends on SHELL
You can’t perform that action at this time.
0 commit comments