serial: ns16550: Add support for SPL_DEBUG_UART_BASE
authorPali Rohár <pali@kernel.org>
Fri, 6 May 2022 09:05:16 +0000 (11:05 +0200)
committerStefan Roese <sr@denx.de>
Tue, 17 May 2022 04:44:06 +0000 (06:44 +0200)
commitd293759d55cce9c3efccf96ca8423008c9d0293b
tree6547670477b84267c6187cb5b1fb556836c35605
parent958789f026c23d9bfea9d31fe78745ef32b0bd7b
serial: ns16550: Add support for SPL_DEBUG_UART_BASE

Use CONFIG_VAL(DEBUG_UART_BASE) instead of CONFIG_DEBUG_UART_BASE, so
proper config value (CONFIG_DEBUG_UART_BASE or CONFIG_SPL_DEBUG_UART_BASE)
is used based on building target.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/serial/ns16550.c