[PATCH] serial: Add additional depencies for PL010 and PL011 drivers

Simon Glass sjg at chromium.org
Sat Jun 26 20:32:13 CEST 2021


On Thu, 24 Jun 2021 at 05:57, Michal Simek <michal.simek at xilinx.com> wrote:
>
> Both of these drivers are implemented with and without DM that's why more
> symbols should be handled.
> The most problematic one is enabling DEBUG_UART_PL011 based on
> PL01X_SERIAL(DM based) because debug console has type selection based on
> it.
>         enum pl01x_type type = CONFIG_IS_ENABLED(DEBUG_UART_PL011) ?
>                                 TYPE_PL011 : TYPE_PL010;
>
> Without it pl01x_generic_setbrg() is configuring different registers.
>
> Fixes: 4cc24aeaf420 ("serial: Add missing Kconfig dependencies for debug consoles")
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/serial/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

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


More information about the U-Boot mailing list