]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
serial: make VPL_DM_SERIAL depend on VPL_DM
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 29 Oct 2025 11:17:43 +0000 (12:17 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 6 Nov 2025 23:33:31 +0000 (17:33 -0600)
I have a hunch VPL_DM_SERIAL should not be selectable if VPL isn't set
as implied by the prefix. Additionally, still based on the prefix, I'm
assuming VPL_DM should be a dependency. Since VPL_DM can only be
selectable when VPL is enabled, only depend on VPL_DM.

This mirrors SPL_DM_SERIAL and TPL_DM_SERIAL so seems right to me.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/Kconfig

index e33f61b024a250d63f63e86917d951c5c9e09584..371d7aa5bbae7525b47d433a71155f6a9dc0f157 100644 (file)
@@ -194,7 +194,7 @@ config TPL_DM_SERIAL
 
 config VPL_DM_SERIAL
        bool "Enable Driver Model for serial drivers in VPL"
-       depends on DM_SERIAL
+       depends on DM_SERIAL && VPL_DM
        default y if VPL && DM_SERIAL
        help
          Enable driver model for serial in VPL. This replaces