[PATCH v3] serial: pl011: Enable DEBUG_UART_PL011 in SPL

Simon Glass sjg at chromium.org
Thu Jul 22 15:28:23 CEST 2021


On Wed, 21 Jul 2021 at 00:11, Chen Baozi <chenbaozi at phytium.com.cn> wrote:
>
> Commit b81406db51a6 ("arm: serial: Add debug UART capability to the
> pl01x driver") add supports to use pl01x as a debug UART. However,
> due to CONFIG_IS_ENABLED macro requires CONFIG_SPL_* prefix, the
> _debug_uart_init() would not choose TYPE_PL011 in SPL build. This
> patch fixes the bug by judging CONFIG_DEBUG_UART_PL011 explicitly.
>
> Signed-off-by: Chen Baozi <chenbaozi at phytium.com.cn>
> ---
>  drivers/serial/serial_pl01x.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list