From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: barebox@lists.infradead.org
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Subject: [PATCH 2/3] serial: i.MX: Add code to export "earlycon" setting
Date: Tue, 12 Mar 2019 00:45:24 -0700 [thread overview]
Message-ID: <20190312074525.6153-3-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <20190312074525.6153-1-andrew.smirnov@gmail.com>
Add code to generate appropriate "earlycon" setting that can be passed
to Linux kernel.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
drivers/serial/serial_imx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 09341af87..e5d41c0bc 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -241,6 +241,9 @@ static int imx_serial_probe(struct device_d *dev)
cdev->flush = imx_serial_flush;
cdev->setbrg = imx_serial_setbaudrate;
cdev->linux_console_name = "ttymxc";
+ if (devtype == &imx21_data)
+ cdev->linux_bootconsole_name = basprintf("ec_imx21,0x%p",
+ priv->regs);
if (dev->device_node) {
devname = of_alias_get(dev->device_node);
if (devname) {
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-03-12 7:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 7:45 [PATCH 0/3] Earlycon command line option support Andrey Smirnov
2019-03-12 7:45 ` [PATCH 1/3] console: Add plumbing to expose earlycon/bootconsole parameter Andrey Smirnov
2019-03-12 7:45 ` Andrey Smirnov [this message]
2019-03-12 7:45 ` [PATCH 3/3] serial: lpuart: Add code to export "earlycon" setting Andrey Smirnov
2019-03-12 9:43 ` [PATCH 0/3] Earlycon command line option support Lucas Stach
2019-03-13 8:45 ` Sascha Hauer
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=20190312074525.6153-3-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.com \
--cc=barebox@lists.infradead.org \
/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