]> git.baikalelectronics.ru Git - uboot.git/commit
serial: Add additional depencies for PL010 and PL011 drivers
authorMichal Simek <michal.simek@xilinx.com>
Thu, 24 Jun 2021 11:36:23 +0000 (13:36 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 28 Jun 2021 06:55:04 +0000 (08:55 +0200)
commite3886833c9bfe875cd681b34eceadc46422eb6d9
treea6758a8a73ac97d4f104e1437749e8ab0b8b6aa6
parent7366121fd6504620d0d03e4ad8c972ef5072bc43
serial: Add additional depencies for PL010 and PL011 drivers

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: 9f75a00c143a ("serial: Add missing Kconfig dependencies for debug consoles")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/Kconfig