projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363e6da
)
serial: ns16550: Remove unnecessary init on UART setup
author
Simon Glass
<sjg@chromium.org>
Sat, 28 Feb 2015 05:06:28 +0000
(22:06 -0700)
committer
Simon Glass
<sjg@chromium.org>
Thu, 23 Apr 2015 02:04:18 +0000
(20:04 -0600)
It is not necessary to write a zero baud rate to the device, and for some
chips this will cause problems. Drop this code.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c
patch
|
blob
|
history
diff --git
a/drivers/serial/ns16550.c
b/drivers/serial/ns16550.c
index 61312995fb86e6c93b259c4803c8658b48b16c4a..fd110b3ddcdf1514a738294ebf4f423bfc254437 100644
(file)
--- a/
drivers/serial/ns16550.c
+++ b/
drivers/serial/ns16550.c
@@
-175,7
+175,6
@@
void NS16550_init(NS16550_t com_port, int baud_divisor)
defined(CONFIG_TI81XX) || defined(CONFIG_AM43XX)
serial_out(0x7, &com_port->mdr1); /* mode select reset TL16C750*/
#endif
- NS16550_setbrg(com_port, 0);
serial_out(UART_MCRVAL, &com_port->mcr);
serial_out(UART_FCRVAL, &com_port->fcr);
if (baud_divisor != -1)