[PATCH 1/4 v2] serial: samsung: add support for skip debug init in s5p

Dzmitry Sankouski dsankouski at gmail.com
Sun Oct 17 12:45:39 CEST 2021


Signed-off-by: Dzmitry Sankouski <dsankouski at gmail.com>
Cc: Minkyu Kang <mk7.kang at samsung.com>
---
Changes for v2:
- if CONFIG_DEBUG_UART_SKIP_INIT, return from init function

 drivers/serial/serial_s5p.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6d09952a5d..6823da79f8 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -221,6 +221,9 @@ U_BOOT_DRIVER(serial_s5p) = {
 
 static inline void _debug_uart_init(void)
 {
+	if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT))
+		return;
+
 	struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
 
 	s5p_serial_init(uart);
-- 
2.20.1



More information about the U-Boot mailing list