summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Ocker <weo@reccoware.de>2008-07-28 16:56:51 +0200
committerShinya Kuribayashi <skuribay@ruby.dti.ne.jp>2008-07-30 00:40:54 +0900
commitdbd32387920e5ad6f9dd58a7b5012bbabe2a6a21 (patch)
treea894b3d5171ff510ae82a8e0e6f043b7dcaebce1 /cpu
parent1953d128fd07f07d1c3810a28c0863ea64dae1b6 (diff)
downloadu-boot-imx-dbd32387920e5ad6f9dd58a7b5012bbabe2a6a21.zip
u-boot-imx-dbd32387920e5ad6f9dd58a7b5012bbabe2a6a21.tar.gz
u-boot-imx-dbd32387920e5ad6f9dd58a7b5012bbabe2a6a21.tar.bz2
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@reccoware.de> Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mips/au1x00_serial.c2
1 files changed, 1 insertions, 1 deletions
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;