From 2fc5a29f7e7504541807ef18dfbe6a6dbb6dea64 Mon Sep 17 00:00:00 2001 From: Huang Chao Date: Tue, 24 Jun 2014 11:17:45 +0800 Subject: [PATCH] dma: pl330: Enumerate the DMA channel PAUSE/RESUME operations 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 --- drivers/dma/pl330.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index ed8cacd..cd132f3 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -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 { -- 2.7.4