diff options
author | Simon Glass <sjg@chromium.org> | 2012-06-26 16:16:36 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-02 15:02:06 -0700 |
commit | d7dd49471c240bd8c96d67c550cc1166158b08f1 (patch) | |
tree | 14cd365a8bea87d8ccc645ac43f7dfbfd736f34e /chip/stm32/dma.h | |
parent | 79353032e02c89b851d2edead6e435caab69c85a (diff) | |
download | chrome-ec-d7dd49471c240bd8c96d67c550cc1166158b08f1.tar.gz |
dma: Add dma_dump() and rename debug config to CONFIG_DMA_HELP
Add a new function to dump the current dma state, and hide it behind
a more official-sounding CONFIG_DMA_HELP.
BUG=chrome-os-partner:10533
TEST=build and boot on snow
Change-Id: I42fb101628e9044284a6b39447b0b1fc2d36587b
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26168
Diffstat (limited to 'chip/stm32/dma.h')
-rw-r--r-- | chip/stm32/dma.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chip/stm32/dma.h b/chip/stm32/dma.h index caf6c6228a..106d16d76b 100644 --- a/chip/stm32/dma.h +++ b/chip/stm32/dma.h @@ -146,6 +146,13 @@ void dma_go(struct dma_channel *chan); void dma_check(int channel, char *buff); /** + * Dump out imformation about a dma channel + * + * @param channel Channel number to read (DMAC_...) + */ +void dma_dump(unsigned channel); + +/** * Testing: Test that DMA works correctly for memory to memory transfers */ void dma_test(void); |