Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: usb: udc: add Smartbond UDC driver #79184

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions boards/renesas/da14695_dk_usb/da14695_dk_usb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ supported:
- i2c
- spi
- usb_device
- usbd
1 change: 1 addition & 0 deletions boards/renesas/da1469x_dk_pro/da1469x_dk_pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ supported:
- mipi_dbi
- display
- memc
- usbd
vendor: renesas
2 changes: 1 addition & 1 deletion drivers/dma/dma_smartbond.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ static void dma_smartbond_set_channel_status(const struct device *dev,
DMA->DMA_CLEAR_INT_REG |= BIT(channel);

/* DMA interrupts should be disabled only if all channels are disabled. */
if (!dma_smartbond_is_dma_active()) {
if (!dma_smartbond_is_dma_active() && irq_is_enabled(SMARTBOND_IRQN)) {
irq_disable(SMARTBOND_IRQN);
/* Allow entering sleep once all DMA channels are inactive */
dma_smartbond_pm_policy_state_lock_put();
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/udc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ zephyr_library_sources_ifdef(CONFIG_UDC_NRF udc_nrf.c)
zephyr_library_sources_ifdef(CONFIG_UDC_KINETIS udc_kinetis.c)
zephyr_library_sources_ifdef(CONFIG_UDC_SKELETON udc_skeleton.c)
zephyr_library_sources_ifdef(CONFIG_UDC_VIRTUAL udc_virtual.c)
zephyr_library_sources_ifdef(CONFIG_UDC_SMARTBOND udc_smartbond.c)
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)
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/udc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ source "drivers/usb/udc/Kconfig.nrf"
source "drivers/usb/udc/Kconfig.kinetis"
source "drivers/usb/udc/Kconfig.skeleton"
source "drivers/usb/udc/Kconfig.virtual"
source "drivers/usb/udc/Kconfig.smartbond"
source "drivers/usb/udc/Kconfig.stm32"
source "drivers/usb/udc/Kconfig.it82xx2"
source "drivers/usb/udc/Kconfig.mcux"
Expand Down
10 changes: 10 additions & 0 deletions drivers/usb/udc/Kconfig.smartbond
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

config UDC_SMARTBOND
bool "Smartbond USB device controller driver"
default y
depends on DT_HAS_RENESAS_SMARTBOND_USBD_ENABLED
select DMA
help
Smartbond USB device controller driver.
Loading
Loading