aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPali Rohár2022-05-06 11:05:15 +0200
committerStefan Roese2022-05-16 11:31:34 +0200
commit9f971ff71498a34f533e341a7e0d00ec75d9fc5b (patch)
tree38d4e3430b5df981b2c230162a1d5810e5c0dde0 /drivers
parent5bb2c550b11eb087437740b2a0d1fe780be5aec3 (diff)
serial: Add new config option SPL_DEBUG_UART_BASE
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 26fa498bbbb..46726d76b16 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