summaryrefslogtreecommitdiff
path: root/include/dma.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-09-06 15:56:48 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-10 23:46:07 +0000
commite6401d2e83939a63cbd156fa193f9768063d9325 (patch)
tree334f2a5ed07a79ce8bfc4162e1fc6ddd0ec1373e /include/dma.h
parent462133fea54e7a3c27af23373105bf2f673e37e9 (diff)
downloadchrome-ec-e6401d2e83939a63cbd156fa193f9768063d9325.tar.gz
Initalize DMA before UART
This is in preparation for enabling DMA-based UART transfers, to improve UART performance on STM32. BUG=chrome-os-partner:20485 BRANCH=none TEST=Boot pit. Host commands should still be received; this verifies DMA is still operational. Change-Id: Ibc3b2e2cd187547eb61b85e4a086704accd7f2fb Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/168810
Diffstat (limited to 'include/dma.h')
-rw-r--r--include/dma.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/dma.h b/include/dma.h
index 1b03795b36..04c1be2bf9 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -2,12 +2,14 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
- * Register map and API for STM32 processor dma registers
+ * DMA interface
*/
#ifndef __CROS_EC_DMA_H
#define __CROS_EC_DMA_H
+#ifdef CONFIG_DMA
+
#include "common.h"
#include "registers.h"
@@ -134,4 +136,10 @@ void dma_disable_tc_interrupt(enum dma_channel channel);
*/
int dma_wait(enum dma_channel channel);
+/**
+ * Initialize the DMA module.
+ */
+void dma_init(void);
+
+#endif /* CONFIG_DMA */
#endif