All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] CONFIG_BAUDRATE doesn't match
@ 2013-08-29 16:08 txcotrader
  2013-08-30  5:18 ` Stefan Roese
  0 siblings, 1 reply; 3+ messages in thread
From: txcotrader @ 2013-08-29 16:08 UTC (permalink / raw)
  To: u-boot

Hello,

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?

Thanks!




--
View this message in context: http://u-boot.10912.n7.nabble.com/CONFIG-BAUDRATE-doesn-t-match-tp162206.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] CONFIG_BAUDRATE doesn't match
  2013-08-29 16:08 [U-Boot] CONFIG_BAUDRATE doesn't match txcotrader
@ 2013-08-30  5:18 ` Stefan Roese
  2013-09-12 19:13   ` txcotrader
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2013-08-30  5:18 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] CONFIG_BAUDRATE doesn't match
  2013-08-30  5:18 ` Stefan Roese
@ 2013-09-12 19:13   ` txcotrader
  0 siblings, 0 replies; 3+ messages in thread
From: txcotrader @ 2013-09-12 19:13 UTC (permalink / raw)
  To: u-boot

Stephan,

The processor is a 460SX (shares the same data sheet as 460GT).

In my /include/configs/<boardname>.h file I include "amcc-common.h" which
has what you suggested:

/*
 * UART
 */
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK      get_serial_clock()
#define CONFIG_BAUDRATE     115200
#define CONFIG_SYS_BAUDRATE_TABLE  \
    {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}

Thanks,
Greg




--
View this message in context: http://u-boot.10912.n7.nabble.com/CONFIG-BAUDRATE-doesn-t-match-tp162206p163043.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-12 19:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 16:08 [U-Boot] CONFIG_BAUDRATE doesn't match txcotrader
2013-08-30  5:18 ` Stefan Roese
2013-09-12 19:13   ` txcotrader

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.