From: Dzmitry Sankouski <dsankouski@gmail.com>
To: u-boot@lists.denx.de
Cc: Dzmitry Sankouski <dsankouski@gmail.com>,
Minkyu Kang <mk7.kang@samsung.com>
Subject: [PATCH 1/4] serial: samsung: add support for skip debug init in s5p
Date: Tue, 12 Oct 2021 18:41:26 +0300 [thread overview]
Message-ID: <20211012154129.19710-2-dsankouski@gmail.com> (raw)
In-Reply-To: <20211012154129.19710-1-dsankouski@gmail.com>
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
drivers/serial/serial_s5p.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6d09952a5d..caa9a4e5c1 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -221,10 +221,12 @@ U_BOOT_DRIVER(serial_s5p) = {
static inline void _debug_uart_init(void)
{
- struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
+ if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT)) {
+ struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
- s5p_serial_init(uart);
- s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE);
+ s5p_serial_init(uart);
+ s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE);
+ }
}
static inline void _debug_uart_putc(int ch)
--
2.20.1
next prev parent reply other threads:[~2021-10-12 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 15:41 [PATCH 0/4] Add support for Samsung 2017 A-series phones Dzmitry Sankouski
2021-10-12 15:41 ` Dzmitry Sankouski [this message]
2021-10-15 2:30 ` [PATCH 1/4] serial: samsung: add support for skip debug init in s5p Minkyu Kang
2021-10-12 15:41 ` [PATCH 2/4] pinctrl: exynos: add support for multiple pin banks Dzmitry Sankouski
2021-10-12 15:41 ` [PATCH 3/4] SoC: exynos: add support for exynos 78x0 Dzmitry Sankouski
2021-10-12 15:41 ` [PATCH 4/4] board: samsung: add support for Galaxy A series of 2017 (a5y17lte) Dzmitry Sankouski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211012154129.19710-2-dsankouski@gmail.com \
--to=dsankouski@gmail.com \
--cc=mk7.kang@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox