]> git.baikalelectronics.ru Git - uboot.git/commit
serial: ns16550: Support run-time configuration
authorSimon Glass <sjg@chromium.org>
Fri, 20 Dec 2019 00:58:18 +0000 (17:58 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 3 Feb 2020 17:19:13 +0000 (01:19 +0800)
commitc71bd68bf6d5b5484c23d307f3e360a37ea7017b
tree2faa4e220f1f8102f815c99eb573073484cc68d0
parenta2d877560f1e03ea9a0a938ef7e496d1b0e611e8
serial: ns16550: Support run-time configuration

At present this driver uses an assortment of CONFIG options to control
how it accesses the hardware. This is painful for platforms that are
supposed to be controlled by a device tree or a previous-stage bootloader.

Add a new CONFIG option to enable fully dynamic configuration. This
controls register spacing, size, offset and endianness.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Aiden Park <aiden.park@intel.com>
Tested-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: squashed in http://patchwork.ozlabs.org/patch/1232929/]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
drivers/serial/ns16550.c
include/ns16550.h