RE: Can't get serial SMC1 and SMC2 working together
From: Björn Östby <hidden>
Date: 2006-04-04 13:35:18
quoted
I'm using a TQM823L board, ELDK and Linux 2.4.25 (from denx). My=20 problem is that i can't use both SMC1 and SMC2 at the same time when I =
quoted
disable the console (console=3Dnull).Serial port interactions can result from incorrect mapping of the baud rate generators (BRGs) to the ports. I'm looking at source from 2.4.19, and this may have changed, but the serial driver init function =
(rs_8xx_init)
calls m8xx_cpm_setbrg() with 'baud_idx' as the argument that selects =
which
BRG. 'baud_idx' is set in serial_console_setup(). If you don't =
configure
a console, 'baud_idx' may not be initialized. In any event, make sure that the BRGs are mapped to the ports as=20 required for your specific board. Ken Poole MRV Communications, INC.
I had the same problem with a custom 823 based card a few weeks ago. =
Turned=20
out smc1 and smc2 indeed became wired to the same BRG when =
console=3D....=20
was passed as argument. My solution was a fast bypass hack in uart.c and =
no console=3D argument_
long __init console_8xx_init(long kmem_start, long kmem_end)
{
/* register_console(&sercons); */
sercons.setup(&sercons, NULL);
return kmem_start;
}
A very static and ugly solution since time was of big essence, but that=20
could possibly help you.
Regards,
Bj=F6rn =D6stby
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org =
https://ozlabs.org/mailman/listinfo/linuxppc-embedded