]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: samsung: add support for skip debug init in s5p
authorDzmitry Sankouski <dsankouski@gmail.com>
Sun, 17 Oct 2021 10:45:39 +0000 (13:45 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 31 Oct 2021 15:25:39 +0000 (11:25 -0400)
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
drivers/serial/serial_s5p.c

index 53a7b0bd1bd689140481cd4570a0ebd1a209795b..de420d2d94533664a703cfbb7df2bae29f1d9c5f 100644 (file)
@@ -273,6 +273,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);