dm: serial: Collect common baud rate code in ns16550
authorSimon Glass <sjg@chromium.org>
Thu, 4 Sep 2014 22:27:33 +0000 (16:27 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Sep 2014 19:00:01 +0000 (13:00 -0600)
commit8bbe33c829c83b7a6315bbc16875f79ba4adac47
tree64c552c3335744c54744704afdbda92f7f0b8b61
parentfa54eb12431efa845bc5692347ee3a7f39d897bc
dm: serial: Collect common baud rate code in ns16550

The same sequence is used in several places, so move it into a function.
Note that UART_LCR_BKSE is an alias for UART_LCR_DLAB.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c