summaryrefslogtreecommitdiff
path: root/chip/stm32/dma.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-07-24 16:53:23 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-27 22:19:16 +0000
commit909fccfd5a340d5f683f9d2b5f1406b931239ec5 (patch)
treee0fd29e4e72c5bc39498b1b387d69c91afdb97c5 /chip/stm32/dma.c
parent198fd7f2c2cc09df0bc28406051a14b2c8bd401c (diff)
downloadchrome-ec-909fccfd5a340d5f683f9d2b5f1406b931239ec5.tar.gz
common: Change interface to dma_test
Allow to test any DMA channel. BRANCH=smaug TEST=Use dmahelp on Ryu BUG=chrome-os-partner:42304 Change-Id: I68606cdd34aa03bbeed9b5a4ababcad780384cc0 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/288510 Reviewed-by: Sheng-liang Song <ssl@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/dma.c')
-rw-r--r--chip/stm32/dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c
index 2a4f4aeb4a..f6f7be0871 100644
--- a/chip/stm32/dma.c
+++ b/chip/stm32/dma.c
@@ -174,9 +174,8 @@ void dma_check(enum dma_channel channel, char *buf)
}
/* Run a check of memory-to-memory DMA */
-void dma_test(void)
+void dma_test(enum dma_channel channel)
{
- enum dma_channel channel = STM32_DMAC_CH4;
stm32_dma_chan_t *chan = dma_get_channel(channel);
uint32_t ctrl;
char periph[16], memory[16];