This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
i386: pcmb enable FIFO on diagnostic serial ports
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 22 Apr 2005 15:44:59 +0100
- Subject: i386: pcmb enable FIFO on diagnostic serial ports
Hi,
This patch (re)enables the FIFO on the pcmb's diagnostic serial ports.
This patch has had the dust blown off it so we're not entirely sure why
it's needed. Possibly something to do with transferring data at 115200
bit/s on slow platforms. However, it looks sensible and works fine on
all the i386 platforms we have here.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
%status
pending
%patch
Index: packages/hal/i386/pcmb/current/ChangeLog
===================================================================
--- packages/hal/i386/pcmb/current/ChangeLog.orig 2005-04-22 10:09:38.000000000 +0100
+++ packages/hal/i386/pcmb/current/ChangeLog 2005-04-22 15:35:08.000000000 +0100
@@ -1,3 +1,7 @@
+2005-04-22 Ian Campbell <icampbell@arcom.com>
+
+ * src/pcmb_serial.c: Enable FIFO.
+
2005-03-21 Bart Veer <bartv@ecoscentric.com>
* src/pcmb_misc.c, cdl/hal_i386_pcmb.cdl: add profiling support
Index: packages/hal/i386/pcmb/current/src/pcmb_serial.c
===================================================================
--- packages/hal/i386/pcmb/current/src/pcmb_serial.c.orig 2005-04-22 15:23:44.000000000 +0100
+++ packages/hal/i386/pcmb/current/src/pcmb_serial.c 2005-04-22 15:32:39.000000000 +0100
@@ -170,7 +170,7 @@
HAL_READ_UINT8(base+CYG_DEV_LSR, lsr);
((channel_data_t*)__ch_data)->valid = (lsr != 0xFF);
-// HAL_WRITE_UINT8(base+CYG_DEV_FCR, 0x07); // Enable & clear FIFO
+ HAL_WRITE_UINT8(base+CYG_DEV_FCR, 0x07); // Enable & clear FIFO
}
//-----------------------------------------------------------------------------