serial: Add missing TPL_SYS_NS16550_SERIAL symbol
authorTom Rini <trini@konsulko.com>
Tue, 4 Mar 2025 20:24:36 +0000 (14:24 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 14:12:18 +0000 (08:12 -0600)
On PowerPC platforms with TPL enabled and SPL_SYS_NS16550_SERIAL
enabled, today this builds under TPL as well due to how $(XPL_) is
defined. Add the TPL_SYS_NS16550_SERIAL itself for consistency and
clarity.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/serial/Kconfig

index c4f4a8d..8413052 100644 (file)
@@ -789,6 +789,12 @@ config SPL_SYS_NS16550_SERIAL
        default y if SYS_NS16550_SERIAL || ARCH_SUNXI || ARCH_OMAP2PLUS
        select SYS_NS16550
 
+config TPL_SYS_NS16550_SERIAL
+       bool "NS16550 UART or compatible legacy driver in TPL"
+       depends on TPL && !TPL_DM_SERIAL
+       default y if SPL_SYS_NS16550_SERIAL
+       select SYS_NS16550
+
 config SYS_NS16550
        bool "NS16550 UART or compatible"
        help