From: Eric Valette <eric.valette@free.fr>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-serial@vger.kernel.org
Subject: Re: ST16C554 Serial device driver
Date: Tue, 21 Sep 2004 14:35:27 +0200 [thread overview]
Message-ID: <4150200F.7020407@free.fr> (raw)
In-Reply-To: <20040921130957.B16836@flint.arm.linux.org.uk>
[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]
Russell King wrote:
> On Tue, Sep 21, 2004 at 12:40:08PM +0200, Eric Valette wrote:
>
>>Sorry to annoy you with one small question : I'm currently working as a
>>contractor to port an application from LynxOS to linux 2.6 and I'm
>>annoyed with the serial driver code. I need to find a driver for a
>>ST16C554 quad serial ISA board. I've tried to use setserial with the
>>relevant IO ports and irq but cannot manage to output annything on the
>>PC 104 board.
>
>
> The kernel 8250 driver is expected to drive this port.
>
> What is the result of an autodetect at the correct address? What are
> the commands you're issuing to tell the kernel where this port is?
> Do you get any kernel messages, and what are they?
>
I checked the LynOS working driver code and found the following
driver uart configuration code (support two differents boards with
diffrent IO ranges and irq's) :
ERIMSERIAL(erimserial0, 0x287, 32 + 10, B19200, B19200,
0x280, 0x288, 0x290, 0x298);
It means : IRQ 10, baud rate 1920 ioports : 0x280, 0x288, 0x290, 0x298
but the interesting register is the 0x287 that is used to
ERIMSERIAL(erimserial1, 0x2a7, 32 + 11, B19200, B19200,
0x2a0, 0x2a8, 0x2b0, 0x2b8);
It means : IRQ 11, aud rate 1920 ioports : 0x2a0, 0x2a8, 0x2b0, 0x2b8
What is more suspect is the 0x287 (0x2a7) and register address that is
described in the manufacturer documentation of the PC104 board that says
: "When the same IRQ is shared by the 4 ports, the card uses 2 registers
at 287H, one to valid the interrupts and the other to read back the 4
interrupt status". The attached pictures gives the signification of the
register.
regarding configuration I basically said :
setserial /dev/ttyS2 port 0x280 irq 10 autoconfig
(same with the four ports) and
setserial /dev/ttyS6 port 0x2a0 irq 11 autoconfig
(same with the four ports)
Kernel release = 2.6.9-rc2
Thanks for ansering
--
__
/ ` Eric Valette
/-- __ o _. 6 rue Paul Le Flem
(___, / (_(_(__ 35740 Pace
Tel: +33 (0)2 99 85 26 76 Fax: +33 (0)2 99 85 26 76
E-mail: eric.valette@free.fr
[-- Attachment #2: snapshot6.png --]
[-- Type: image/png, Size: 22922 bytes --]
next prev parent reply other threads:[~2004-09-21 12:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-21 10:40 ST16C554 Serial device driver Eric Valette
2004-09-21 11:08 ` Roman Kurakin
2004-09-21 12:09 ` Russell King
2004-09-21 12:35 ` Eric Valette [this message]
2004-09-21 12:54 ` Russell King
2004-09-21 13:13 ` Eric Valette
2004-09-21 13:47 ` Eric Valette
2004-09-22 11:51 ` Eric Valette
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4150200F.7020407@free.fr \
--to=eric.valette@free.fr \
--cc=linux-serial@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.