Skip to content
Open
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
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxc444/frdm_mcxc444.dts
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,7 @@ zephyr_udc0: &usb {
status = "okay";
num-bidir-endpoints = <8>;
};

&dma {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ supported:
- pwm
- usb_device
- usbd
- dma
testing:
ignore_tags:
- net
Expand Down
12 changes: 11 additions & 1 deletion drivers/clock_control/clock_control_mcux_sim.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017,2025 NXP
* Copyright 2017, 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -37,6 +37,16 @@ static int mcux_sim_on(const struct device *dev,
}
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(dma))
if ((uint32_t)sub_system == KINETIS_SIM_DMA_CLK) {
clock_ip_name = kCLOCK_Dma0;
}

if ((uint32_t)sub_system == KINETIS_SIM_DMAMUX_CLK) {
clock_ip_name = kCLOCK_Dmamux0;
}
#endif

CLOCK_EnableClock(clock_ip_name);

return 0;
Expand Down
1 change: 1 addition & 0 deletions drivers/dma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ zephyr_library_sources_ifdef(CONFIG_DMA_WCH dma_wch.c)
zephyr_library_sources_ifdef(CONFIG_DMA_TI_CC23X0 dma_ti_cc23x0.c)
zephyr_library_sources_ifdef(CONFIG_DMA_NPCX_GDMA dma_npcx_gdma.c)
zephyr_library_sources_ifdef(CONFIG_DMA_SF32LB dma_sf32lb.c)
zephyr_library_sources_ifdef(CONFIG_DMA_NXP dma_nxp.c)
2 changes: 2 additions & 0 deletions drivers/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ source "drivers/dma/Kconfig.npcx"

source "drivers/dma/Kconfig.sf32lb"

source "drivers/dma/Kconfig.nxp"

endif # DMA
7 changes: 7 additions & 0 deletions drivers/dma/Kconfig.nxp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2025
# SPDX-License-Identifier: Apache-2.0

config DMA_NXP
bool "NXP DMA driver"
default y
depends on DT_HAS_NXP_DMA_ENABLED
Loading