aboutsummaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-06 01:21:19 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-06 01:21:19 +0200
commit5633796c090340238b025dff4b8107be8509a68b (patch)
tree07bac925a56f7e351e7ef9ee81c65390194e23ef /cpu
parent5ad73a81aa0b69ca1828c95c5152979e92633e41 (diff)
downloadu-boot-midas-5633796c090340238b025dff4b8107be8509a68b.tar.gz
u-boot-midas-5633796c090340238b025dff4b8107be8509a68b.tar.bz2
u-boot-midas-5633796c090340238b025dff4b8107be8509a68b.zip
Fix baudrate setting for KGDB on MPC8260
Patch by HoJin, 11 Dec 2004
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8260/serial_smc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc8260/serial_smc.c b/cpu/mpc8260/serial_smc.c
index 0873319339..b486f8385e 100644
--- a/cpu/mpc8260/serial_smc.c
+++ b/cpu/mpc8260/serial_smc.c
@@ -360,10 +360,10 @@ kgdb_serial_init (void)
/* Set up the baud rate generator.
*/
#if defined(CONFIG_KGDB_USE_EXTC)
- m8260_cpm_extcbrg(KGDB_SMC_INDEX, speed,
+ m8260_cpm_extcbrg(brg_map[KGDB_SMC_INDEX], speed,
CONFIG_KGDB_EXTC_RATE, CONFIG_KGDB_EXTC_PINSEL);
#else
- m8260_cpm_setbrg(KGDB_SMC_INDEX, speed);
+ m8260_cpm_setbrg(brg_map[KGDB_SMC_INDEX], speed);
#endif
/* Make the first buffer the only buffer.