summaryrefslogtreecommitdiff
path: root/cpu/mpc512x/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/mpc512x/serial.c')
-rw-r--r--cpu/mpc512x/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc512x/serial.c b/cpu/mpc512x/serial.c
index 200ff2c..8a21404 100644
--- a/cpu/mpc512x/serial.c
+++ b/cpu/mpc512x/serial.c
@@ -86,7 +86,7 @@ int serial_init(void)
psc->mode = PSC_MODE_1_STOPBIT;
/* calculate dividor for setting PSC CTUR and CTLR registers */
- baseclk = (gd->ipb_clk + 8) / 16;
+ baseclk = (gd->ips_clk + 8) / 16;
div = (baseclk + (gd->baudrate / 2)) / gd->baudrate;
psc->ctur = (div >> 8) & 0xff;