]> git.dujemihanovic.xyz Git - u-boot.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)
commit5e9d2833ed7973722c5ece0bc07052f5d539c680
treea6758a8a73ac97d4f104e1437749e8ab0b8b6aa6
parentbe2d1a87c73b3f722fc5b0438d780014579a43de
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: 4cc24aeaf420 ("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