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: dma: Add initial support for NXP SDMA #80330

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Oct 23, 2024

This adds initial support for NXP SDMA controller. We make use
of NXP HAL to configure the IP. SDMA uses BD (buffer descriptors) to describe a transfer. We create
a cyclic list of descriptors and trigger them manually at start and later when data is available.
This is tested using Sound Open Firmware app on top of Zephyr.

We first need to merge following PRs:

This adds initial support for NXP SDMA controller. We make use
of NXP HAL to configure the IP.

SDMA uses BD (buffer descriptors) to describe a transfer. We create
a cyclic list of descriptors and trigger them manually at start and
later when data is available.

This is tested using Sound Open Firmware app on top of Zephyr.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Add sai3 and sdma3 nodes found on NXP i.MX8MP SOC.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
/* buffer is full */
chan_data->stat.pending_length = chan_data->capacity;
chan_data->stat.free = 0;
} else {
Copy link
Collaborator

@iuliana-prodan iuliana-prodan Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have here PERIPHERAL_TO_MEMORY and a default case in which we log an error.
LE: and in similar places below

/* Clear channel 0 */
SDMA_ClearChannelInterruptStatus(dev_cfg->base, 1U);

/* Ignore channel 0, is it is used only for download */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/is it is used only for download/is used only for download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DMA Direct Memory Access area: Xtensa Xtensa Architecture platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants