]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/serial/ns16550.c
serial: ns16550: Support ns16550 compatible pci uart devices
authorBin Meng <bmeng.cn@gmail.com>
Wed, 31 Dec 2014 08:05:12 +0000 (16:05 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:24:57 +0000 (07:24 -0800)
commit3db886a5bf38700b51a1d7a7b00ec8b64c9c2089
tree8e6bff54363929386acee737922afd15e474c60a
parenta62e84d7b1824a202dd6a9e9c7b1bc350c7b33b7
serial: ns16550: Support ns16550 compatible pci uart devices

There are many pci uart devices which are ns16550 compatible. We can
describe them in the board dts file and use it as the U-Boot serial
console as specified in the chosen node 'stdout-path' property.

Those pci uart devices can have their register be memory-mapped, or
i/o-mapped. The driver will try to use the memory-mapped register if
the reg property in the node has an entry to describe the memory-mapped
register, otherwise i/o-mapped register will be used.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c