From: Ed Vance <EdV@macrolink.com>
To: "'David Lawyer'" <dave@lafn.org>
Cc: "'linux-kernel'" <linux-kernel@vger.kernel.org>
Subject: RE: Problem to use a Oxford semiconductor Intelligent DUAL Channe l UA RT (OX16PCI952)
Date: Wed, 20 Feb 2002 15:26:45 -0800 [thread overview]
Message-ID: <11E89240C407D311958800A0C9ACF7D13A76A7@EXCHANGE> (raw)
On Fri, Feb 15, 2002 at 09:03PM, David Lawyer wrote:
> On Fri, Feb 15, 2002 at 11:17:02AM -0800, Ed Vance wrote:
> >
> > If you can find out the maximum baud rate, try adjusting the it for the
port
> > with setserial's baud_base parameter. Two common base baud rates for 95X
> > based cards are 921600 and 3125000.
>
> How does 3125000 divide to give the standard "baud" rates? I checked a
> few standard values such at 115.2k, 28.8k, etc. 3125000 is not
> divisible by them. You may have a wrong number.
Right you are. The 3125000 Hz number does not divide well for the faster
standard rates. Here's where the number came from. The oscillator value on
my 16PCI954 based card is 50.0 MHz, which is not a clean multiple of
anything. The UART is in x16 async clock mode so (without the prescaler) the
highest possible baud rate (divisor = 1) is 50.0 MHz / 16 = 3125000 Hz.
To get the standard rates above 115.2k with a 50.0 MHz clock, we must use
the 16950's CPR register (prescaler) which supports fractional scale
factors. See today's patch from fabrizio.gennari@philips.com, "[PATCH]
Kernel support for 16C950's CPR register". This is a better solution than
what I was using which was to initialize the CPR to create a more benign
base rate close to 921600 Hz, which is the other number I mentioned.
Thanks for noticing. I had published the version of my serial driver patch
without the CPR register initialization. oops.
Best regards,
----------------------------------------------------------------
Ed Vance edv@macrolink.com
Macrolink, Inc. 1500 N. Kellogg Dr Anaheim, CA 92807
----------------------------------------------------------------
next reply other threads:[~2002-02-20 23:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 23:26 Ed Vance [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-02-27 22:13 Ed Vance
2002-02-26 22:32 Ed Vance
2002-02-26 19:17 Ed Vance
2002-02-15 19:17 Ed Vance
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=11E89240C407D311958800A0C9ACF7D13A76A7@EXCHANGE \
--to=edv@macrolink.com \
--cc=dave@lafn.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®