linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* cpm_setbrg problem
@ 2007-06-06 12:30 Matvejchikov Ilya
  0 siblings, 0 replies; only message in thread
From: Matvejchikov Ilya @ 2007-06-06 12:30 UTC (permalink / raw)
  To: linuxppc-embedded

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-06 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 12:30 cpm_setbrg problem Matvejchikov Ilya

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).