From 958789f026c23d9bfea9d31fe78745ef32b0bd7b Mon Sep 17 00:00:00 2001
From: =?utf8?q?Pali=20Roh=C3=A1r?= <pali@kernel.org>
Date: Mon, 16 May 2022 18:49:09 +0200
Subject: [PATCH] serial: Add new config option TPL_DEBUG_UART_BASE
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

TPL_DEBUG_UART_BASE is same as DEBUG_UART_BASE, but applies only for TPL.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Stefan Roese <sr@denx.de>
---
 drivers/serial/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 46726d76b1..f6425a530e 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -515,6 +515,13 @@ config SPL_DEBUG_UART_BASE
 	help
 	  This is the base address of your UART for memory-mapped UARTs for SPL.
 
+config TPL_DEBUG_UART_BASE
+	hex "Base address of UART for TPL"
+	depends on TPL && DEBUG_UART
+	default DEBUG_UART_BASE
+	help
+	  This is the base address of your UART for memory-mapped UARTs for TPL.
+
 config DEBUG_UART_CLOCK
 	int "UART input clock"
 	depends on DEBUG_UART
-- 
2.39.5