diff options
author | Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> | 2016-10-27 11:19:14 -0700 |
---|---|---|
committer | Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> | 2016-10-27 11:22:58 -0700 |
commit | 5750354f7a102edbca76fef6d0c10f4a36d8885b (patch) | |
tree | e41635dc653c5da9ea137fd59de6841afc7cef24 /drivers | |
parent | 9cbd41ab13bf2b48bcfb6e3e97b4d59020004707 (diff) |
dma: Fix QMSI shim by setting the DMA xfer type
Set DMA transfer to QM_DMA_TYPE_SINGLE for all channels.
This keeps the previous behavior as of QMSI 1.1.
In the future, we may consider adding support for using other DMA
transfer types. This, however, will demand adding new API to Zephyr's
dma.h .
Change-Id: I8071555190662a72279069ff9fce3d4b9e861629
Signed-off-by: Maciej Kuc <maciejx.kuc@intel.com>
Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/dma_qmsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/dma_qmsi.c b/drivers/dma/dma_qmsi.c index b50623c99..afafe17a3 100644 --- a/drivers/dma/dma_qmsi.c +++ b/drivers/dma/dma_qmsi.c @@ -86,6 +86,9 @@ static int dma_qmsi_channel_config(struct device *dev, uint32_t channel, qmsi_cfg.source_burst_length = (qm_dma_burst_length_t) config->source_burst_length; + /* TODO: add support for using other DMA transfer types. */ + qmsi_cfg.transfer_type = QM_DMA_TYPE_SINGLE; + data->callback_data[channel] = config->callback_data; data->transfer[channel] = config->dma_transfer; data->error[channel] = config->dma_error; |