aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Klotzbuecher2007-03-21 14:41:46 +0100
committerMarkus Klotzbuecher2007-03-21 14:41:46 +0100
commitd5f4614c9350d9333e575100fb250aab774d0258 (patch)
treefc9a9557124452c31cf7e4a5d1b785a5bfb307b0
parentaea17f99278818caa327ad0e511b48d1761fb10c (diff)
SPC1920: fix small clock routing bug
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
-rw-r--r--cpu/mpc8xx/serial.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpu/mpc8xx/serial.c b/cpu/mpc8xx/serial.c
index 9d0fc6b4fa8..53e03f4afb4 100644
--- a/cpu/mpc8xx/serial.c
+++ b/cpu/mpc8xx/serial.c
@@ -229,15 +229,14 @@ static int smc_init (void)
#ifdef CFG_SPC1920_SMC1_CLK4
/* clock source is PLD */
-
+
/* set freq to 19200 Baud */
*((volatile uchar *) CFG_SPC1920_PLD_BASE+6) = 0x3;
/* configure clk4 as input */
im->im_ioport.iop_pdpar |= 0x800;
im->im_ioport.iop_pddir &= ~0x800;
- cp->cp_simode = 0x0000;
- cp->cp_simode |= 0x7000;
+ cp->cp_simode = ((cp->cp_simode & ~0xf000) | 0x7000);
#else
/* Set up the baud rate generator */
smc_setbrg ();