summaryrefslogtreecommitdiff
path: root/cpu/mpc8xx/serial.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-12-07 22:27:15 +0000
committerwdenk <wdenk>2003-12-07 22:27:15 +0000
commit3bbc899fc0bba51db83e4b3960f32c3ad6ba813c (patch)
treeea3b6384e4685c53ab7bffaad09d1ab04f2b943f /cpu/mpc8xx/serial.c
parentb028f7151379c5bb6814099fbbccb31d8b07b891 (diff)
downloadu-boot-imx-3bbc899fc0bba51db83e4b3960f32c3ad6ba813c.zip
u-boot-imx-3bbc899fc0bba51db83e4b3960f32c3ad6ba813c.tar.gz
u-boot-imx-3bbc899fc0bba51db83e4b3960f32c3ad6ba813c.tar.bz2
Patch by Wolter Kamphuis, 05 Dec 2003:
Add support for SNMC's QS850/QS823/QS860T boards
Diffstat (limited to 'cpu/mpc8xx/serial.c')
-rw-r--r--cpu/mpc8xx/serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/mpc8xx/serial.c b/cpu/mpc8xx/serial.c
index faea3c3..a875963 100644
--- a/cpu/mpc8xx/serial.c
+++ b/cpu/mpc8xx/serial.c
@@ -78,6 +78,10 @@ static void serial_setdivisor(volatile cpm8xx_t *cp)
divisor=(50*1000*1000)/16/9600;
}
+#ifdef CFG_BRGCLK_PRESCALE
+ divisor /= CFG_BRGCLK_PRESCALE;
+#endif
+
if(divisor<=0x1000) {
cp->cp_brgc1=((divisor-1)<<1) | CPM_BRG_EN;
} else {