diff mbox series

[3/5] serial: Add new config option SPL_DEBUG_UART_BASE

Message ID 20220506090517.5935-4-pali@kernel.org
State Accepted
Commit 9f971ff71498a34f533e341a7e0d00ec75d9fc5b
Delegated to: Stefan Roese
Headers show
Series arm: mvebu: turris_omnia: Fix hangup in debug UART | expand

Commit Message

Pali Rohár May 6, 2022, 9:05 a.m. UTC
SPL_DEBUG_UART_BASE is same as DEBUG_UART_BASE, but applies only for SPL.

In some cases base address of UART is different in SPL and proper U-Boot.

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

Comments

Stefan Roese May 16, 2022, 6:37 a.m. UTC | #1
On 06.05.22 11:05, Pali Rohár wrote:
> SPL_DEBUG_UART_BASE is same as DEBUG_UART_BASE, but applies only for SPL.
> 
> In some cases base address of UART is different in SPL and proper U-Boot.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
>   drivers/serial/Kconfig | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
> index 26fa498bbbb7..46726d76b162 100644
> --- a/drivers/serial/Kconfig
> +++ b/drivers/serial/Kconfig
> @@ -508,6 +508,13 @@ config DEBUG_UART_BASE
>   	  A default should be provided by your board, but if not you will need
>   	  to use the correct value here.
>   
> +config SPL_DEBUG_UART_BASE
> +	hex "Base address of UART for SPL"
> +	depends on SPL && DEBUG_UART
> +	default DEBUG_UART_BASE
> +	help
> +	  This is the base address of your UART for memory-mapped UARTs for SPL.
> +
>   config DEBUG_UART_CLOCK
>   	int "UART input clock"
>   	depends on DEBUG_UART

Viele Grüße,
Stefan Roese
diff mbox series

Patch

diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 26fa498bbbb7..46726d76b162 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -508,6 +508,13 @@  config DEBUG_UART_BASE
 	  A default should be provided by your board, but if not you will need
 	  to use the correct value here.
 
+config SPL_DEBUG_UART_BASE
+	hex "Base address of UART for SPL"
+	depends on SPL && DEBUG_UART
+	default DEBUG_UART_BASE
+	help
+	  This is the base address of your UART for memory-mapped UARTs for SPL.
+
 config DEBUG_UART_CLOCK
 	int "UART input clock"
 	depends on DEBUG_UART