From: "Matvejchikov Ilya" <matvejchikov@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: cpm_setbrg problem
Date: Wed, 6 Jun 2007 16:30:14 +0400 [thread overview]
Message-ID: <8496f91a0706060530o57ebb3e4nf87ae4f566ea2e4e@mail.gmail.com> (raw)
Hi all!
There is a problem in cpm_setbrg (arch/powerpc/sysdev/cpm2_common.c
file) function. When rate 9600 all is OK, but with 115200 it doesn't
work properly. As I see it the following is incorrect:
*bp = ((BRG_UART_CLK / rate) << 1) | CPM_BRG_EN;
it must be
*bp = (((BRG_UART_CLK / rate) - 1) << 1) | CPM_BRG_EN;
Best regards,
Matvejchikov Ilya.
reply other threads:[~2007-06-06 12:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8496f91a0706060530o57ebb3e4nf87ae4f566ea2e4e@mail.gmail.com \
--to=matvejchikov@gmail.com \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).