[U-Boot-Users] [Patch] MPC5200 PSC Baud rate calculation
Jonas Mark-r50740
Mark.Jonas at motorola.com
Thu Jan 29 17:56:53 CET 2004
Hello,
attached is a patch against 1.0.2 (checked out 2004-01-14) that fixes a bug in MPC5200 PSC Baud rate calculation. The patch modifies cpu/mpc5xxx/serial.c.
The problem was that not the proper rounding was applied which resulted in slightly off Baud rates. The formula to calculate the Baud rate is:
Divider = (f_IPBI / 32) / Baudrate
Hence, the formula using integer should be:
Divider = (((f_IPBI + 16) / 32) + Baudrate/2) / Baudrate
Regards
Mark Jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-pscfix-20040114.patch
Type: application/octet-stream
Size: 872 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040129/a2dece03/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-lowbootram-20040114.patch
Type: application/octet-stream
Size: 509 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040129/a2dece03/attachment-0001.obj
More information about the U-Boot
mailing list