projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1953d12
)
mips: Fix baudrate divisor computation on alchemy cpus
author
Wolfgang Ocker
<weo@reccoware.de>
Mon, 28 Jul 2008 14:56:51 +0000
(16:56 +0200)
committer
Shinya Kuribayashi
<skuribay@ruby.dti.ne.jp>
Tue, 29 Jul 2008 15:40:54 +0000
(
00:40
+0900)
Use CFG_MIPS_TIMER_FREQ when computing the baudrate divisor
on alchemy cpus.
Signed-off-by: Wolfgang Ocker <weo@reccoware.de>
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
cpu/mips/au1x00_serial.c
patch
|
blob
|
history
diff --git
a/cpu/mips/au1x00_serial.c
b/cpu/mips/au1x00_serial.c
index
6309794
..
e8baab5
100644
(file)
--- 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;