TsiChung Liew 81cc32322a 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>
2008-07-11 10:45:56 -06:00
..
2008-05-21 00:14:08 +02:00
2008-07-11 10:45:56 -06:00
2008-05-21 00:14:08 +02:00
2008-06-09 14:20:55 +09:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00