[PATCH v3 1/4] serial: ns16550: Support run-time configuration

Bin Meng bmeng.cn at gmail.com
Mon Feb 3 03:29:11 CET 2020


On Fri, Dec 20, 2019 at 8:58 AM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> ---
>
> Changes in v3:
> - Rewrite the conditional logic to a fix a bug and match serial_xx_shift()
> - Add a separate flag for whether to use endian-aware out() functions
>
> Changes in v2:
> - runtime -> run-time
> - Enable run-time config for slimbootloader too
> - Improve Kconfig help based on Bin's comments
> - Use ns16550 in patch subject
>
>  drivers/serial/Kconfig   | 21 ++++++++++++++
>  drivers/serial/ns16550.c | 59 ++++++++++++++++++++++++++++++++++------
>  include/ns16550.h        | 16 ++++++++++-
>  3 files changed, 87 insertions(+), 9 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list