Searched hist:"81 cc32322acb1b3225ee45606ced48e2a14824dc" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | mcfuart.c | 81cc32322acb1b3225ee45606ced48e2a14824dc Thu May 29 17:21:54 UTC 2008 TsiChung Liew <Tsi-Chung.Liew@freescale.com> ColdFire: Fix UART baudrate formula
The formula "counter = (u32) (gd->bus_clk / gd->baudrate) / 32" can generate the wrong divisor due to integer division truncation. Round the calculated divisor value by adding 1/2 the baudrate before dividing by the baudrate.
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
|