I noticed (the hard way) that the mcf.c driver doesn't support the fractional 
precision register on the MCF5272.  This makes the console dicey at 115200 baud 
and a system clock of 66.0 MHz.  On the other hand, if your hardware is running 
at 66.666 MHz, it probably isn't a problem.

Is this something worthy of a patch, and if so, how do I submit it?  (Sorry, 
linux newbie)  I have a few lines of code that seem to do the trick for me, but 
I hate to spoil that beautiful code if no one but me wants it.

Diff output follows for linux-2.6.x/drivers/serial/mcf.c

John

215,217d214
< #if defined(CONFIG_M5272)
<       unsigned int baudfr;
< #endif
221,224d217
< #if defined(CONFIG_M5272)
<       baudclk = (MCF_BUSCLK / baud) / 32;
<       baudfr = (((MCF_BUSCLK / baud) + 1) / 2) % 16;
< #else
226d218
< #endif
273,276d264
< #if defined(CONFIG_M5272)
<       writeb((baudfr & 0x0f), port->membase + MCFUART_UFPD);
< #endif
<





_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to