aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-08-29 22:00:43 +0000
committerwdenk <wdenk>2003-08-29 22:00:43 +0000
commit6f21347d49b1741e4b8247f5e2d3fa83ef169c25 (patch)
tree680eaba02ba065cc99e7f75d155bc5f0b75789ea /drivers/serial.c
parentc29fdfc1d8cbefd2d85a354b95486a6d2b3f4a88 (diff)
downloadu-boot-midas-6f21347d49b1741e4b8247f5e2d3fa83ef169c25.tar.gz
u-boot-midas-6f21347d49b1741e4b8247f5e2d3fa83ef169c25.tar.bz2
u-boot-midas-6f21347d49b1741e4b8247f5e2d3fa83ef169c25.zip
* Patch by George G. Davis, 19 Aug 2003:
fix TI Innovator/OMAP1510 pin configs * Patches by Kshitij, 18 Aug 2003 - add support for arm926ejs cpu core - add support for TI OMAP 1610 Innovator Board
Diffstat (limited to 'drivers/serial.c')
-rw-r--r--drivers/serial.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/serial.c b/drivers/serial.c
index 44875e5ae1..f5b51d6b7c 100644
--- a/drivers/serial.c
+++ b/drivers/serial.c
@@ -53,6 +53,12 @@ static int calc_divisor (void)
}
console->osc_12m_sel = 0; /* clear if previsouly set */
#endif
+#ifdef CONFIG_OMAP1610
+ /* If can't cleanly clock 115200 set div to 1 */
+ if ((CFG_NS16550_CLK == 48000000) && (gd->baudrate == 115200)) {
+ return (26); /* return 26 for base divisor */
+ }
+#endif
return (CFG_NS16550_CLK / 16 / gd->baudrate);
}