Skip to contentSkip to conversation

drivers/serial.c: Correct divisor calculation

PATCH New Daniel Hobi 1 participant 1 message Dec 13, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/serial.c: Correct divisor calculation

Hi,

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).

Regards,
Daniel
-------------- 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