dma: pl330: Enumerate the DMA channel PAUSE/RESUME operations
authorHuang Chao <chao7.huang@samsung.com>
Tue, 24 Jun 2014 03:17:45 +0000 (11:17 +0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:55 +0000 (11:59 +0900)
This patch expands the pl330 dma channel operation enumerations,
which will support to pause data transfer and halt dma channel
on DMA_PAUSE command and resume data transfer and restart dma
channel on DMA_RESUME command.

Change-Id: I5d129063edca747a6c03f23a67c82ef508e4de17
Signed-off-by: Huang Chao <chao7.huang@samsung.com>
drivers/dma/pl330.c

index ed8cacd..cd132f3 100644 (file)
@@ -429,6 +429,10 @@ enum pl330_chan_op {
        PL330_OP_ABORT,
        /* Stop xfer and flush queue */
        PL330_OP_FLUSH,
+       /* Pause xfer and halt channel */
+       PL330_OP_PAUSE,
+       /* Resume xfer and restart channel */
+       PL330_OP_RESUME,
 };
 
 struct _xfer_spec {