summaryrefslogtreecommitdiff
path: root/chip/mec1322/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/dma.c')
-rw-r--r--chip/mec1322/dma.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/chip/mec1322/dma.c b/chip/mec1322/dma.c
index 53e09122af..afd76aedc4 100644
--- a/chip/mec1322/dma.c
+++ b/chip/mec1322/dma.c
@@ -34,6 +34,17 @@ void dma_disable(enum dma_channel channel)
chan->act = 0;
}
+void dma_disable_all(void)
+{
+ int ch;
+
+ for (ch = 0; ch < MEC1322_DMAC_COUNT; ch++) {
+ mec1322_dma_chan_t *chan = dma_get_channel(ch);
+ chan->ctrl &= ~(1 << 0);
+ chan->act = 0;
+ }
+}
+
/**
* Prepare a channel for use and start it
*