[PATCH v5 39/44] serial: Support ns16550 driver in TPL

Simon Glass
2023-02-22T16:47:56Z

Add options for this since they are needed by P1020RDB-PC_NAND.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

drivers/serial/Kconfig | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index bb5083201b3..6f40c051604 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -731,6 +731,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 SYS_NS16550_SERIAL || ARCH_SUNXI || ARCH_OMAP2PLUS
+ select SYS_NS16550
+
config SYS_NS16550
bool "NS16550 UART or compatible"
help
--
2.39.2.637.g21b0678d19-goog