* [U-Boot-Users] [PATCH] BUGFIX: serial setting for kgdb
@ 2004-12-11 2:38 HoJin
2005-08-05 23:22 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: HoJin @ 2004-12-11 2:38 UTC (permalink / raw)
To: u-boot
Hi,
KGDB_SMC_INDEX must be used as the index for brg_map, but it is used
direclty. (compared with function serial_init)
So it does not work properly. I have tested it and it works fine.
I noticed the same problem with 'serial_scc.c', but I could not test it yet.
Patch for only for 'serial_smc.c' is attached.
Index: cpu/mpc8260/serial_smc.c
===================================================================
--- cpu/mpc8260/serial_smc.c (revision 65)
+++ cpu/mpc8260/serial_smc.c (working copy)
@@ -360,10 +360,10 @@
/* 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.
--
Hojin
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot-Users] [PATCH] BUGFIX: serial setting for kgdb
2004-12-11 2:38 [U-Boot-Users] [PATCH] BUGFIX: serial setting for kgdb HoJin
@ 2005-08-05 23:22 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-08-05 23:22 UTC (permalink / raw)
To: u-boot
In message <41BA5DAC.9000008@yahoo.co.kr> you wrote:
>
> KGDB_SMC_INDEX must be used as the index for brg_map, but it is used
> direclty. (compared with function serial_init)
> So it does not work properly. I have tested it and it works fine.
Thanks for pointing out, added.
> I noticed the same problem with 'serial_scc.c', but I could not test it yet.
I think the serial_scc.c code is OK, please check again.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Just about every computer on the market today runs Unix, except the
Mac (and nobody cares about it). - Bill Joy 6/21/85
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-05 23:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-11 2:38 [U-Boot-Users] [PATCH] BUGFIX: serial setting for kgdb HoJin
2005-08-05 23:22 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox