dma/cavs_hda: Adds link in/link out compatibles
Adds hda link in and out drivers. The link in and link out channels of HDA have small differences with the host channels. Updates the existing cavs_hda drivers and code to account for these differences. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
parent
98f1a98cf5
commit
2f320730a1
9 changed files with 225 additions and 12 deletions
|
@ -7,7 +7,7 @@
|
|||
#ifndef ZEPHYR_DRIVERS_DMA_DMA_CAVS_HDA_COMMON_H_
|
||||
#define ZEPHYR_DRIVERS_DMA_DMA_CAVS_HDA_COMMON_H_
|
||||
|
||||
#define CAVS_HDA_MAX_CHANNELS 32
|
||||
#define CAVS_HDA_MAX_CHANNELS DT_PROP(DT_NODELABEL(hda_host_out), dma_channels)
|
||||
|
||||
#include <drivers/dma.h>
|
||||
|
||||
|
@ -31,6 +31,17 @@ int cavs_hda_dma_host_out_config(const struct device *dev,
|
|||
uint32_t channel,
|
||||
struct dma_config *dma_cfg);
|
||||
|
||||
int cavs_hda_dma_link_in_config(const struct device *dev,
|
||||
uint32_t channel,
|
||||
struct dma_config *dma_cfg);
|
||||
|
||||
int cavs_hda_dma_link_out_config(const struct device *dev,
|
||||
uint32_t channel,
|
||||
struct dma_config *dma_cfg);
|
||||
|
||||
int cavs_hda_dma_link_reload(const struct device *dev, uint32_t channel,
|
||||
uint32_t src, uint32_t dst, size_t size);
|
||||
|
||||
int cavs_hda_dma_host_reload(const struct device *dev, uint32_t channel,
|
||||
uint32_t src, uint32_t dst, size_t size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue