summaryrefslogtreecommitdiff
path: root/drivers/serial.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-01-09 23:16:25 +0000
committerwdenk <wdenk>2005-01-09 23:16:25 +0000
commit8ed9604613398660f9ee855060661da8809d4045 (patch)
tree7901e427798e0d09ad53038d7b6112e10556ceae /drivers/serial.c
parentff36fd8591776405eeb3a086ba1136bf1ece2ffb (diff)
downloadu-boot-imx-8ed9604613398660f9ee855060661da8809d4045.zip
u-boot-imx-8ed9604613398660f9ee855060661da8809d4045.tar.gz
u-boot-imx-8ed9604613398660f9ee855060661da8809d4045.tar.bz2
* Patches by Richard Woodruff, 01 Oct 2004:
add support for the TI OMAP2420 processor and its H4 reference board * Patch by Christian Pellegrin, 24 Sep 2004: Added support for NE2000 compatible (DP8390, DP83902) NICs.
Diffstat (limited to 'drivers/serial.c')
-rw-r--r--drivers/serial.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/serial.c b/drivers/serial.c
index f5b51d6..b13b05e 100644
--- a/drivers/serial.c
+++ b/drivers/serial.c
@@ -59,7 +59,14 @@ static int calc_divisor (void)
return (26); /* return 26 for base divisor */
}
#endif
- return (CFG_NS16550_CLK / 16 / gd->baudrate);
+
+#ifdef CONFIG_APTIX
+#define MODE_X_DIV 13
+#else
+#define MODE_X_DIV 16
+#endif
+ return (CFG_NS16550_CLK / MODE_X_DIV / gd->baudrate);
+
}
int serial_init (void)