mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
81cc32322a
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> |
||
---|---|---|
.. | ||
atmel_usart.c | ||
atmel_usart.h | ||
Makefile | ||
mcfuart.c | ||
ns9750_serial.c | ||
ns16550.c | ||
s3c4510b_uart.c | ||
s3c4510b_uart.h | ||
serial_max3100.c | ||
serial_pl010.c | ||
serial_pl011.c | ||
serial_pl011.h | ||
serial_sh.c | ||
serial_xuartlite.c | ||
serial.c | ||
usbtty.c | ||
usbtty.h |