ns16550: support DesignWare 8250
authorIan Campbell <ian.campbell@citrix.com>
Fri, 20 Sep 2013 16:18:35 +0000 (17:18 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sat, 21 Sep 2013 15:27:45 +0000 (16:27 +0100)
commit50417cd978aa54930d065ac1f139f935d14af76d
tree16c9096142fef419b39c2ad70a47110bb4483e38
parent7c1de0038895cbc75ebd0caffc5b0f3f03c5ad51
ns16550: support DesignWare 8250

This hardware has an additional feature which signals an error if you try to
write LCR while the UART is busy. We need to clear this error during setup,
otherwise LCR.DLAB doesn't get set and we cannot read/write the divisor.

This has been tested on the cubieboard2

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
Cc: jbeulich@suse.com
xen/drivers/char/ns16550.c
xen/include/xen/8250-uart.h