public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] mips: Fix baudrate divisor computation on	alchemy cpus
Date: Tue, 29 Jul 2008 12:31:51 +0900	[thread overview]
Message-ID: <488E8F27.6050403@necel.com> (raw)
In-Reply-To: <1217257011.3293.20.camel@galileo.recco.de>

Wolfgang Ocker wrote:
> Use CFG_MIPS_TIMER_FREQ when computing the baudrate divisor
> on alchemy cpus.
> 
> Signed-off-by: Wolfgang Ocker <weo@reccoware.de>

Thanks, I'll apply and push this out tonight.  This patch should go in
the upcoming v1.3.4 final.

  Shinya

> ---
> diff --git a/cpu/mips/au1x00_serial.c b/cpu/mips/au1x00_serial.c
> index 6309794..e8baab5 100644
> --- a/cpu/mips/au1x00_serial.c
> +++ b/cpu/mips/au1x00_serial.c
> @@ -76,7 +76,7 @@ void serial_setbrg (void)
>  	sd = (*sys_powerctrl & 0x03) + 2;
>  
>  	/* calulate 2x baudrate and round */
> -	divisorx2 = ((CFG_HZ/(sd * 16 * CONFIG_BAUDRATE)));
> +	divisorx2 = ((CFG_MIPS_TIMER_FREQ/(sd * 16 * CONFIG_BAUDRATE)));
>  
>  	if (divisorx2 & 0x01)
>  		divisorx2 = divisorx2 + 1;

      reply	other threads:[~2008-07-29  3:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 14:56 [U-Boot-Users] [PATCH] mips: Fix baudrate divisor computation on alchemy cpus Wolfgang Ocker
2008-07-29  3:31 ` Shinya Kuribayashi [this message]

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=488E8F27.6050403@necel.com \
    --to=shinya.kuribayashi@necel.com \
    --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