diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 3 | ||||
-rw-r--r-- | include/dma.h | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index d46ae943f2..8b5e2a9214 100644 --- a/include/config.h +++ b/include/config.h @@ -280,6 +280,9 @@ /*****************************************************************************/ +/* Compile support for the DMA module */ +#undef CONFIG_DMA + /* Compile extra debugging and tests for the DMA module */ #undef CONFIG_DMA_HELP 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 |