diff options
author | Huang Chao <chao7.huang@samsung.com> | 2014-06-13 11:22:17 +0800 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:59:50 +0900 |
commit | 5133c4520e8d8ec5e0f70806bd36ee8b8c949648 (patch) | |
tree | f8f028d322ac74554c9750ce9c83d1667bd5bf2d /drivers | |
parent | 85225ee105152147189769db48d282f21d5e4d45 (diff) | |
download | linux-3.10-5133c4520e8d8ec5e0f70806bd36ee8b8c949648.tar.gz linux-3.10-5133c4520e8d8ec5e0f70806bd36ee8b8c949648.tar.bz2 linux-3.10-5133c4520e8d8ec5e0f70806bd36ee8b8c949648.zip |
dma: pl330: Implement the dma channel pause/resume interfaces
This patch implements dma pause and resume interfaces for the
pl330 dmac driver. When the dmaengine_pause callback is called
from audio platform driver, the pl330 driver should handle the
pause command. And when the dmaengine_resume callback function
is called, the pl330 driver should handle the resume command.
In order not to return error code for pause/resume operation,
currently there is nothing implemented for pause and resume
switch interfaces, and there might have some continuous work
for pl330 channel configuration in the future. However, the
odroidx2/u3 board can pause/resume with this implementation.
Change-Id: I584106a4d7861fde308997e6843088fbf0a9b1bb
Signed-off-by: Huang Chao <chao7.huang@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/pl330.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 24f8ae3f376..ed8cacdddcb 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2416,6 +2416,12 @@ static int pl330_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, unsigned pch->burst_len = slave_config->src_maxburst; } break; + case DMA_PAUSE: + /* TODO: set up dma channel and config register if any */ + break; + case DMA_RESUME: + /* TODO: set up dma channel and config register if any */ + break; default: dev_err(pch->dmac->pif.dev, "Not supported command.\n"); return -ENXIO; |