drivers: usb: udc: add NuMaker series USBD controller driver

Add UDC driver for Nuvoton NuMaker series USBD controller

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This commit is contained in:
Chun-Chieh Li 2024-06-21 16:40:16 +08:00 committed by Anas Nashif
commit 86c991ed03
4 changed files with 1838 additions and 0 deletions

View file

@ -15,3 +15,4 @@ zephyr_library_sources_ifdef(CONFIG_UDC_STM32 udc_stm32.c)
zephyr_library_sources_ifdef(CONFIG_UDC_IT82XX2 udc_it82xx2.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NXP_EHCI udc_mcux_ehci.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NXP_IP3511 udc_mcux_ip3511.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NUMAKER udc_numaker.c)

View file

@ -62,5 +62,6 @@ source "drivers/usb/udc/Kconfig.virtual"
source "drivers/usb/udc/Kconfig.stm32"
source "drivers/usb/udc/Kconfig.it82xx2"
source "drivers/usb/udc/Kconfig.mcux"
source "drivers/usb/udc/Kconfig.numaker"
endif # UDC_DRIVER

View file

@ -0,0 +1,31 @@
# Copyright (c) 2024 Nuvoton Technology Corporation
# SPDX-License-Identifier: Apache-2.0
config UDC_NUMAKER
bool "Nuvoton NuMaker USB 1.1 device controller"
default y
depends on DT_HAS_NUVOTON_NUMAKER_USBD_ENABLED
help
Enable Nuvoton NuMaker USB 1.1 device controller driver
if UDC_NUMAKER
config UDC_NUMAKER_MSG_QUEUE_SIZE
int "UDC NuMaker message queue size"
default 32
help
Maximum number of messages the driver can queue for interrupt bottom half processing.
config UDC_NUMAKER_THREAD_STACK_SIZE
int "UDC NuMaker driver internal thread stack size"
default 1536
help
Size of the stack for the driver internal thread.
config UDC_NUMAKER_THREAD_PRIORITY
int "UDC NuMaker driver internal thread priority"
default 8
help
Priority of the driver internal thread.
endif # UDC_NUMAKER

File diff suppressed because it is too large Load diff