Skip to content

Commit a5a0c21

Browse files
committed
usb: udc: Introduce bl61x HS driver
Adds a device mode driver for BL61x Signed-off-by: Camille BAUD <[email protected]>
1 parent 052ded1 commit a5a0c21

File tree

4 files changed

+1489
-0
lines changed

4 files changed

+1489
-0
lines changed

drivers/usb/udc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ zephyr_library()
66
zephyr_library_sources(udc_common.c)
77
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/usb/common/)
88

9+
zephyr_library_sources_ifdef(CONFIG_UDC_BFLB_BL61X udc_bflb_bl61x.c)
910
zephyr_library_sources_ifdef(CONFIG_UDC_DWC2 udc_dwc2.c)
1011
zephyr_library_sources_ifdef(CONFIG_UDC_NRF udc_nrf.c)
1112
zephyr_library_sources_ifdef(CONFIG_UDC_KINETIS udc_kinetis.c)

drivers/usb/udc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ module = UDC_DRIVER
6969
module-str = usb drv
7070
source "subsys/logging/Kconfig.template.log_config"
7171

72+
source "drivers/usb/udc/Kconfig.bflb"
7273
source "drivers/usb/udc/Kconfig.dwc2"
7374
source "drivers/usb/udc/Kconfig.nrf"
7475
source "drivers/usb/udc/Kconfig.kinetis"

drivers/usb/udc/Kconfig.bflb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config UDC_BFLB_BL61X
5+
bool "BL61x USB controller device driver"
6+
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
7+
imply UDC_WORKQUEUE
8+
default y
9+
depends on DT_HAS_BFLB_BL61X_USB_ENABLED
10+
help
11+
Bouffalolab BL61x USB controller device driver
12+
13+
if UDC_BFLB_BL61X
14+
15+
config UDC_BFLB_BL61X_EVENT_COUNT
16+
int "Number or blocks in event slab"
17+
range 4 16
18+
default 8
19+
help
20+
Number of blocks in slab for internal endpoint events.
21+
22+
endif # UDC_BFLB_BL61X

0 commit comments

Comments
 (0)