[U-Boot-Users] at91rm9200 serial frequency fix

Wolfgang Denk wd at denx.de
Sun Aug 19 22:39:13 CEST 2007


In message <20070819163547.GA21765 at gandalf.sssup.it> you wrote:
> Fix CD calcutation on serial device.
> 
> Signed-off-by: Trimarchi Michael <trimarchimichael at yahoo.it>
> ---
> 
> --- cpu/arm920t/at91rm9200/serial.c.orig	2007-08-19 19:26:23.000000000 +0200
> +++ cpu/arm920t/at91rm9200/serial.c	2007-08-19 19:29:50.000000000 +0200
> @@ -50,14 +50,18 @@ AT91PS_USART us = (AT91PS_USART) AT91C_B
>  AT91PS_USART us = (AT91PS_USART) AT91C_BASE_US1;
>  #endif
>  
> +#define BAUDRATE(mck, baud) \
           ^^^^^^^^
> +	us->US_BRGR = BOUDRATE(AT91C_MASTER_CLOCK, (unsigned)baudrate);
                      ^^^^^^^^
Spelling...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hi there! This is just a note from me, to you, to tell you, the  per-
son  reading this note, that I can't think up any more famous quotes,
jokes, nor bizarre stories, so you may as well go home.




More information about the U-Boot mailing list