summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen5200/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 21:42:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-20 21:42:00 +0000
commit7da34053e781f749be7e05b29c2e008d55b98e12 (patch)
tree3a71c8ce5c32682f880c4835b064fc2214625fcc /c/src/lib/libbsp/powerpc/gen5200/console/console.c
parent2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-7da34053e781f749be7e05b29c2e008d55b98e12.tar.bz2
2007-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
Add Embedded Planets EP5200 which is the same as the Freescale 5200Lite (a.k.a. IceCube) evaluation board. * Makefile.am: Add linkcmds.ep5200. Add -DMPC5200_BAPI_LIBC_HEADERS to remove some warnings in bestcomm. * preinstall.am: Add linkcmds.ep5200. * clock/clock.c: Correct math for prescaler/counter when bus speed is high enough to require multiple passes of loop. * console/console.c: Use same math for initial baud rate as when it is changed via ioctl. When HAS_UBOOT is defined, initialize console to the same baud as it was with U-Boot. * include/bsp.h: Add EP5200 and console boot baud support. * include/mpc5200.h: Spacing. * startup/bspstart.c: If HAS_UBOOT and SHOW_MORE_INIT_SETTINGS are both defined, dump the U-Boot BD info structure. * vectors/vectors.S: ep5200 cannot use vectors segment. When loading it, U-Boot freezes. Besides, U-Boot can automatically start the BSP so we do not have to run from board reset. * startup/linkcmds.ep5200: New file.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/console/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen5200/console/console.c b/c/src/lib/libbsp/powerpc/gen5200/console/console.c
index a2f66267c2..e6ebb56bfb 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/console/console.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/console/console.c
@@ -497,13 +497,13 @@ void mpc5200_uart_psc_initialize(int minor) {
*/
psc->tfalarm = 1;
- baud_divider = IPB_CLOCK / (9600 * 32);
+ baud_divider = (IPB_CLOCK + GEN5200_CONSOLE_BAUD *16) / (GEN5200_CONSOLE_BAUD * 32);
+
/*
* Set upper timer counter
*/
psc->ctur = baud_divider >> 16;
-
/*
* Set lower timer counter
*/