Skip to contentSkip to conversation

serial: Add missing TPL_SYS_NS16550_SERIAL symbol

PATCH In review Tom Rini 1 participant 2 messages Mar 4, 2025 – Mar 18, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 serial: Add missing TPL_SYS_NS16550_SERIAL symbol

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.

---
 drivers/serial/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/serial/Kconfig +6 -0
index c4f4a8d78df1..84130524c2de 100644
@@ -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
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

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.

Applied to u-boot/next, thanks!

[1/1] serial: Add missing TPL_SYS_NS16550_SERIAL symbol

      commit: 0d8b2970a47c914faf13dd1aa97ff7f2070ba8e1
Signature · 1 line
Tom