diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-08-29 14:19:43 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-10 18:23:20 +0000 |
commit | d6253caaa1a6cc9cf8ca624006872e9dcda13e15 (patch) | |
tree | 5e1fee9ee19f4d91b17669a75479ab28846cad02 | |
parent | 86b37e8d9d0f7131f08e1f56343ba5ff7a4dfcf8 (diff) | |
download | chrome-ec-d6253caaa1a6cc9cf8ca624006872e9dcda13e15.tar.gz |
CHERRY-PICK: Allow to disable default DMA interrupt handlers
The default DMA interrupt handlers are somewhat slow and not really flexible,
allow to override them in board if needed.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=none
Change-Id: Id0ba824a15f132b57c1e38ed58a33fbed43e5b8c
Original-Change-Id: I909bfab265ccaa4f3b61d0a2a69bf7dfc0414be2
Reviewed-on: https://chromium-review.googlesource.com/215671
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222848
Reviewed-by: Mohammed Habibulla <moch@chromium.org>
Commit-Queue: Mohammed Habibulla <moch@chromium.org>
Tested-by: Mohammed Habibulla <moch@chromium.org>
-rw-r--r-- | chip/stm32/dma.c | 2 | ||||
-rw-r--r-- | include/config.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c index 75073b4db6..290013ed8d 100644 --- a/chip/stm32/dma.c +++ b/chip/stm32/dma.c @@ -250,6 +250,7 @@ void dma_clear_isr(enum dma_channel channel) dma->ifcr |= STM32_DMA_ISR_ALL(channel); } +#ifdef CONFIG_DMA_DEFAULT_HANDLERS #ifdef CHIP_FAMILY_STM32F0 void dma_event_interrupt_channel_1(void) { @@ -323,3 +324,4 @@ void dma_event_interrupt_channel_7(void) } DECLARE_IRQ(STM32_IRQ_DMA_CHANNEL_7, dma_event_interrupt_channel_7, 3); #endif /* CHIP_FAMILY_STM32F0 */ +#endif /* CONFIG_DMA_DEFAULT_HANDLERS */ diff --git a/include/config.h b/include/config.h index 6da9a55c1e..cfd7a5f97d 100644 --- a/include/config.h +++ b/include/config.h @@ -449,6 +449,9 @@ /* Support DMA transfers inside the EC */ #undef CONFIG_DMA +/* Use the common interrupt handlers for DMA IRQs */ +#define CONFIG_DMA_DEFAULT_HANDLERS + /* Compile extra debugging and tests for the DMA module */ #undef CONFIG_DMA_HELP |