summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-20 22:36:30 +0000
committerwdenk <wdenk>2003-06-20 22:36:30 +0000
commit0332990b8508cea232b2f2ae47283cf395c7ee62 (patch)
tree93e70cf9c11c0cffdb425d13cd30fae45a954eea /drivers
parent0b97ab144f3ec4e3ae13e8c13e7296b2f89481a8 (diff)
downloadu-boot-imx-0332990b8508cea232b2f2ae47283cf395c7ee62.zip
u-boot-imx-0332990b8508cea232b2f2ae47283cf395c7ee62.tar.gz
u-boot-imx-0332990b8508cea232b2f2ae47283cf395c7ee62.tar.bz2
* Patch by Devin Crumb, 02 Apr 2003:
Fix clock divider rounding problem in drivers/serial.c * Patch by Ken Chou, 19 June 2003: Added support for A3000 SBC board (Artis Microsystems Inc.)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial.c b/drivers/serial.c
index 5e2115e..36d0e6e 100644
--- a/drivers/serial.c
+++ b/drivers/serial.c
@@ -46,7 +46,8 @@ int serial_init (void)
{
DECLARE_GLOBAL_DATA_PTR;
- int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+ int clock_divisor = (CFG_NS16550_CLK + gd->baudrate * 8 )
+ / (gd->baudrate * 16);
#ifdef CFG_NS87308
initialise_ns87308();