drivers: udc: add USBFSOTG UDC driver for Kinetis SoCs

Add USBFSOTG UDC driver for Kinetis SoCs.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2022-05-10 23:40:24 +02:00 committed by Carles Cufí
commit 1083e61163
4 changed files with 1192 additions and 0 deletions

View file

@ -5,3 +5,4 @@ zephyr_library()
zephyr_library_sources(udc_common.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NRF udc_nrf.c)
zephyr_library_sources_ifdef(CONFIG_UDC_KINETIS udc_kinetis.c)

View file

@ -48,5 +48,6 @@ module-str = usb drv
source "subsys/logging/Kconfig.template.log_config"
source "drivers/usb/udc/Kconfig.nrf"
source "drivers/usb/udc/Kconfig.kinetis"
endif # UDC_DRIVER

View file

@ -0,0 +1,18 @@
# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config UDC_KINETIS
bool "Kinetis USB device controller driver"
imply UDC_WORKQUEUE
default y
depends on DT_HAS_NXP_KINETIS_USBD_ENABLED
help
Kinetis USB device controller criver.
config UDC_KINETIS_EVENT_COUNT
int "Number or blocks in event slab"
depends on UDC_KINETIS
range 4 16
default 4
help
Number of blocks in slab for internal endpoint events.

File diff suppressed because it is too large Load diff