43a0839c6c
This commit introduces the SOF host DMA driver. This driver is used by NXP platforms in the context of SOF's host component to copy data from the host memory to the firmware (local) memory. This is possible because NXP platforms can access the host memory directly w/o an actual DMA engine. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Copyright 2023 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config DMA_NXP_SOF_HOST_DMA
|
|
bool "NXP DMA driver used by SOF's host component"
|
|
default y
|
|
depends on DT_HAS_NXP_SOF_HOST_DMA_ENABLED
|
|
help
|
|
Enable NXP's DMA driver used by
|
|
SOF (Sound Open Firmware) host
|
|
component. Specifically, this driver
|
|
is used by the SOF host component to
|
|
perform transfers between the host
|
|
memory and firmware (local) memory, which
|
|
can be accessed without an actual
|
|
DMA engine.
|
|
|
|
if DMA_NXP_SOF_HOST_DMA
|
|
|
|
config DMA_NXP_SOF_HOST_DMA_ALIGN
|
|
int "Alignment (in bytes) required for memory regions passed to this driver"
|
|
default 8
|
|
help
|
|
Use this to set the alignment (in bytes)
|
|
which shall be used by entities employing
|
|
this driver to adjust a memory region's size
|
|
and base address. Since this driver doesn't
|
|
actually have any hardware to back it up this
|
|
configuration doesn't make much sense as there's
|
|
no alignment restrictions imposed by memcpy.
|
|
Nevertheless, this is needed because this driver
|
|
needs to act as if it controls a DMA engine.
|
|
|
|
endif # DMA_NXP_SOF_HOST_DMA
|