Hi John,
Adamson, John wrote:
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
The best way to create a patch between 2 files is to run something like:
diff -up <old> <new>
Note the order, old first, then new. And then include the whole
output (diff header with filenames and all).
That way it can be easily applied with patch.
Regards
Greg
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
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev