summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2014-06-25 16:21:42 +0530
committerRajendra Nayak <rnayak@ti.com>2014-06-25 18:24:57 +0530
commitcc75a79026190fb19bd70c8c31ced5c25fb92859 (patch)
tree328c5807102cbcb044cf5dabdcd6a91fb2e6fdab /include
parent89da9b85fcda6ff18b8e47a2b47f0bf3f3f48eba (diff)
ARM: OMAP2+: DMA: remove requirement of irq for platform-dma driver
we have currently 2 DMA drivers that try to co-exist. drivers/dma/omap-dma.c which registers it's own IRQ and is device tree aware and uses arch/arm/plat-omap/dma.c instance created by arch/arm/mach-omap2/dma.c to maintain channel usage (omap_request_dma). Currently both try to register interrupts and mach-omap2/plat-omap dma.c attempts to use the IRQ number registered by hwmod to register it's own interrupt handler. Now, there is no reasonable way of static allocating DMA irq in GIC SPI when we use crossbar. However, since the dma_chan structure is freed as a result of IRQ not being present due to devm allocation, maintaining information of channel by platform code fails at a later point in time when that region of memory is reused. So, if hwmod does not indicate an IRQ number, then, assume that dma-engine will take care of the interrupt handling. Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/omap-dma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h
index 6aa97e5f040..00f546cfc54 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -130,6 +130,7 @@
#define IS_WORD_16 BIT(0xd)
#define ENABLE_16XX_MODE BIT(0xe)
#define HS_CHANNELS_RESERVED BIT(0xf)
+#define DMA_ENGINE_HANDLE_IRQ BIT(0x10)
/* Defines for DMA Capabilities */
#define DMA_HAS_TRANSPARENT_CAPS (0x1 << 18)