Title: [7493] trunk/drivers/serial/bfin_5xx.c: DMA head file are used in bf548 serial PIO mode as well.
Revision
7493
Author
sonicz
Date
2009-09-28 06:44:37 -0400 (Mon, 28 Sep 2009)

Log Message

DMA head file are used in bf548 serial PIO mode as well.

UART2 and UART3 on BF548 share interrupt PINs and DMA
controllers with SPORT2 and SPORT3. UART rx and tx
interrupts are generated in PIO mode only when configure
their peripheral mapping registers properly, which means
request corresponding DMA channels in PIO mode as well.

Modified Paths

Diff

Modified: trunk/drivers/serial/bfin_5xx.c (7492 => 7493)


--- trunk/drivers/serial/bfin_5xx.c	2009-09-28 09:45:08 UTC (rev 7492)
+++ trunk/drivers/serial/bfin_5xx.c	2009-09-28 10:44:37 UTC (rev 7493)
@@ -33,8 +33,11 @@
 #include <asm/cacheflush.h>
 #include <asm/bfin_serial.h>
 
+/* DMA head is used by bf54x in PIO mode as well. See bellow.*/
+#if defined(CONFIG_SERIAL_BFIN_DMA) || defined(CONFIG_BF54x)
+#include <asm/dma.h>
+#endif
 #ifdef CONFIG_SERIAL_BFIN_DMA
-#include <asm/dma.h>
 #include <linux/dma-mapping.h>
 #endif
 
@@ -682,6 +685,13 @@
 
 # ifdef CONFIG_BF54x
 	{
+		/*
+		 * UART2 and UART3 on BF548 share interrupt PINs and DMA
+		 * controllers with SPORT2 and SPORT3. UART rx and tx
+		 * interrupts are generated in PIO mode only when  configure
+		 * their peripheral mapping registers properly, which means
+		 * request corresponding DMA channels in PIO mode as well.
+		 */
 		unsigned uart_dma_ch_rx, uart_dma_ch_tx;
 
 		switch (uart->port.irq) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to