Title: [3909] branches/2007R1/include/asm-blackfin/mach-bf537/bfin_serial_5xx.h: Fix bug[#3710] Fix UART port config on 2007R1.
Revision
3909
Author
sonicz
Date
2007-11-20 23:52:17 -0600 (Tue, 20 Nov 2007)

Log Message

Fix bug[#3710] Fix UART port config on 2007R1.

Diffstat

 bfin_serial_5xx.h |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

Modified Paths

Diff

Modified: branches/2007R1/include/asm-blackfin/mach-bf537/bfin_serial_5xx.h (3908 => 3909)


--- branches/2007R1/include/asm-blackfin/mach-bf537/bfin_serial_5xx.h	2007-11-21 05:14:45 UTC (rev 3908)
+++ branches/2007R1/include/asm-blackfin/mach-bf537/bfin_serial_5xx.h	2007-11-21 05:52:17 UTC (rev 3909)
@@ -126,11 +126,21 @@
 {
 	unsigned short val;
 	val = bfin_read16(BFIN_PORT_MUX);
-	val &= ~(PFDE | PFTE);
+#ifdef CONFIG_SERIAL_BFIN_UART0
+	val &= ~PFDE;
+#endif
+#ifdef CONFIG_SERIAL_BFIN_UART1
+	val &= ~PFTE;
+#endif
 	bfin_write16(BFIN_PORT_MUX, val);
 
 	val = bfin_read16(PORTF_FER);
-	val |= 0xF;
+#ifdef CONFIG_SERIAL_BFIN_UART0
+	val |= 0x3;
+#endif
+#ifdef CONFIG_SERIAL_BFIN_UART1
+	val |= 0xC;
+#endif
 	bfin_write16(PORTF_FER, val);
 
 #ifdef CONFIG_SERIAL_BFIN_CTSRTS
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to