[U-Boot-Users] [GIT PULL] MIPS updates

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Tue Jul 29 18:00:41 CEST 2008


Hi Wolfgang,

please pull MIPS update.  I'd like to make this into v1.3.4-final.

Thanks,

  Shinya

---

The following changes since commit 1953d128fd07f07d1c3810a28c0863ea64dae1b6:
  Michal Simek (1):
        microblaze: Fix printf() format issues

are available in the git repository at:

  git://git.denx.de/u-boot-mips.git master

Wolfgang Ocker (1):
      mips: Fix baudrate divisor computation on alchemy cpus

 cpu/mips/au1x00_serial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

commit dbd32387920e5ad6f9dd58a7b5012bbabe2a6a21
Author: Wolfgang Ocker <weo at reccoware.de>
Date:   Mon Jul 28 16:56:51 2008 +0200

    mips: Fix baudrate divisor computation on alchemy cpus
    
    Use CFG_MIPS_TIMER_FREQ when computing the baudrate divisor
    on alchemy cpus.
    
    Signed-off-by: Wolfgang Ocker <weo at reccoware.de>
    Signed-off-by: Shinya Kuribayashi <skuribay at ruby.dti.ne.jp>

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;




More information about the U-Boot mailing list