[crisos] DMA on serial port 0

[ Thread Index | Date Index | More lists.tuxfamily.org/crisos Archives ]


Is there a reason to not have DMA on serial port 0? Otherwise the
attached patch makes it possible to enable it.
--- target/linux/etrax/patches/401-serial0_dma.patch.old	1970-01-01 01:00:00.000000000 +0100
+++ target/linux/etrax/patches/401-serial0_dma.patch	2009-01-29 11:46:00.000000000 +0100
@@ -0,0 +1,31 @@
+--- linux-2.6.25.16/arch/cris/Kconfig.org	2008-12-18 13:03:57.000000000 +0100
++++ linux-2.6.25.16/arch/cris/Kconfig	2009-01-29 11:02:53.000000000 +0100
+@@ -377,8 +377,8 @@ endchoice
+ choice
+ 	prompt "Ser0 DMA out channel"
+ 	depends on ETRAX_SERIAL_PORT0
+-	default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
+-	default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
++	default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V10
++	default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V32
+ 
+ config ETRAX_SERIAL_PORT0_NO_DMA_OUT
+ 	bool "Ser0 uses no DMA for output"
+@@ -387,7 +387,7 @@ config ETRAX_SERIAL_PORT0_NO_DMA_OUT
+ 
+ config ETRAX_SERIAL_PORT0_DMA6_OUT
+ 	bool "Ser0 uses DMA6 for output"
+-	depends on ETRAXFS
++	depends on ETRAXFS || ETRAX_ARCH_V10
+ 	help
+ 	  Enables the DMA6 output channel for ser0 (ttyS0).
+ 	  If you do not enable DMA, an interrupt for each character will be
+@@ -422,7 +422,7 @@ config ETRAX_SERIAL_PORT0_NO_DMA_IN
+ 
+ config ETRAX_SERIAL_PORT0_DMA7_IN
+ 	bool "Ser0 uses DMA7 for input"
+-	depends on ETRAXFS
++	depends on ETRAXFS || ETRAX_ARCH_V10
+ 	help
+ 	  Enables the DMA7 input channel for ser0 (ttyS0).
+ 	  If you do not enable DMA, an interrupt for each character will be


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/