[PATCH 02/22] OMAP: DMA: add omap_dma_has_sglist()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simplify detection of the sglist feature and add a
define for the super block end event that occurs
with sglist transfers.

Signed-off-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>
CC: Venkatraman S <svenkatr@xxxxxx>
CC: Madhusudhan C <madhu.cr@xxxxxx>
CC: Shilimkar Santosh <santosh.shilimkar@xxxxxx>
CC: Tony Lindgren <tony@xxxxxxxxxxx>
---
 arch/arm/plat-omap/dma.c              |    5 +++++
 arch/arm/plat-omap/include/plat/dma.h |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 7f64366..32a923a 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -1862,6 +1862,11 @@ int omap_get_dma_chain_src_pos(int chain_id)
 EXPORT_SYMBOL(omap_get_dma_chain_src_pos);
 #endif	/* ifndef CONFIG_ARCH_OMAP1 */
 
+int omap_dma_has_sglist_mode(void)
+{
+	return dma_caps0_status & DMA_CAPS_SGLIST_SUPPORT;
+}
+
 int omap_set_dma_sglist_mode(int lch, struct omap_dma_sglist_node *sgparams,
 	dma_addr_t padd, int nelem, struct omap_dma_channel_params *chparams)
 {
diff --git a/arch/arm/plat-omap/include/plat/dma.h b/arch/arm/plat-omap/include/plat/dma.h
index 4d73eb1..3536eb4 100644
--- a/arch/arm/plat-omap/include/plat/dma.h
+++ b/arch/arm/plat-omap/include/plat/dma.h
@@ -209,6 +209,7 @@
 #define OMAP2_DMA_SECURE_ERR_IRQ	(1 << 9)
 #define OMAP2_DMA_SUPERVISOR_ERR_IRQ	(1 << 10)
 #define OMAP2_DMA_MISALIGNED_ERR_IRQ	(1 << 11)
+#define OMAP2_DMA_SUPER_BLOCK_IRQ	(1 << 14)
 
 #define OMAP_DMA_CCR_EN			(1 << 7)
 #define OMAP_DMA_CCR_RD_ACTIVE		(1 << 9)
@@ -616,6 +617,8 @@ static inline int omap_lcd_dma_running(void)
 }
 #endif
 
+extern int omap_dma_has_sglist_mode(void);
+
 /**
  * omap_set_dma_sglist_mode()	Switch channel to scatter gather mode
  * @lch:	Logical channel to switch to sglist mode
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux