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:
parent
0f6e2ba7cd
commit
1083e61163
4 changed files with 1192 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
18
drivers/usb/udc/Kconfig.kinetis
Normal file
18
drivers/usb/udc/Kconfig.kinetis
Normal 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.
|
1172
drivers/usb/udc/udc_kinetis.c
Normal file
1172
drivers/usb/udc/udc_kinetis.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue