[U-Boot-Users] [PATCH] drivers/serial.c: Correct divisor calculation

Daniel Hobi dhobi at gmx.net
Wed Dec 13 14:21:40 CET 2006


This patch fixes the UART divisor calculation in the generic serial 
driver by doing a division with correct rounding.

Note: There are quite a few board-specific serial drivers which 
calculate the UART divisor without correct rounding. These need to be 
fixed too.

Note: The patch to drivers/serial_pl010.c proposed by Robert Deliën on 
5. Dec 2006 has the same problem (macro UART_PL010_BAUD2DIVISOR).

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: drivers-serial.c-Correct-divisor-calculation.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20061213/763a0cdc/attachment.txt 

More information about the U-Boot mailing list