diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-06-24 13:36:23 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-06-28 08:55:04 +0200 |
commit | 5e9d2833ed7973722c5ece0bc07052f5d539c680 (patch) | |
tree | a6758a8a73ac97d4f104e1437749e8ab0b8b6aa6 | |
parent | be2d1a87c73b3f722fc5b0438d780014579a43de (diff) | |
download | u-boot-5e9d2833ed7973722c5ece0bc07052f5d539c680.zip u-boot-5e9d2833ed7973722c5ece0bc07052f5d539c680.tar.gz u-boot-5e9d2833ed7973722c5ece0bc07052f5d539c680.tar.bz2 |
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>
-rw-r--r-- | drivers/serial/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 6d1c453..9f82467 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -332,7 +332,7 @@ config DEBUG_UART_APBUART config DEBUG_UART_PL010 bool "pl010" - depends on PL01X_SERIAL + depends on PL01X_SERIAL || PL010_SERIAL help Select this to enable a debug UART using the pl01x driver with the PL010 UART type. You will need to provide parameters to make this @@ -341,7 +341,7 @@ config DEBUG_UART_PL010 config DEBUG_UART_PL011 bool "pl011" - depends on PL011_SERIAL + depends on PL01X_SERIAL || PL011_SERIAL help Select this to enable a debug UART using the pl01x driver with the PL011 UART type. You will need to provide parameters to make this |