public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] CONFIG_BAUDRATE doesn't match
Date: Fri, 30 Aug 2013 07:18:53 +0200	[thread overview]
Message-ID: <52202B3D.5060803@denx.de> (raw)
In-Reply-To: <1377792500628-162206.post@n7.nabble.com>

On 29.08.2013 18:08, txcotrader wrote:
> I'm working with an AMCC based board and I'm running into an issue when I
> set my uart0 baud rate. In the include/configs/amcc-common.h there is the
> following code:
> 
> #define CONFIG_BAUDRATE      115200
> #define CONFIG_SYS_BAUDRATE_TABLE  \
>     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
> 
> but after checking it on the o-scope it's not at 115200 baud. It seems like
> there is an offset of 3 because if I set the following bauds I get values on
> the o-scope like so:
> 
> #define CONFIG_BAUDRATE      9600  // o-scope baud = 57600
> #define CONFIG_BAUDRATE      19200  // o-scope baud = 115200
> #define CONFIG_BAUDRATE      38400  // o-scope baud = 230400
> 
> Could someone point me in the direction of how this may be happening?

Which 4xx variant is used? Do you have an external clock for the uarts?
Then you need to check if this value is configured correctly:

#define CONFIG_SYS_EXT_SERIAL_CLOCK     11059200

If your baudrate is generated from the internal clocks then you need to
make sure that this values are set:

#define CONFIG_SYS_NS16550_CLK          get_serial_clock()
#undef CONFIG_SYS_EXT_SERIAL_CLOCK

Which did you configure? And for which CPU vaiant?

Thanks,
Stefan

  reply	other threads:[~2013-08-30  5:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 16:08 [U-Boot] CONFIG_BAUDRATE doesn't match txcotrader
2013-08-30  5:18 ` Stefan Roese [this message]
2013-09-12 19:13   ` txcotrader

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=52202B3D.5060803@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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