From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>,
Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 1/2] serial: cadence: support console= and earlycon= fixups
Date: Mon, 14 Jul 2025 09:12:48 +0200 [thread overview]
Message-ID: <20250714071249.2428110-1-a.fatoum@barebox.org> (raw)
If we tell the serial driver core about the names of the Linux
console and earlycon driver, barebox can fix up the console= and
earlycon= arguments without having to hardcode Linux boot arguments.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
drivers/serial/serial_cadence.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/serial/serial_cadence.c b/drivers/serial/serial_cadence.c
index bda3269106c7..52b488e80f0a 100644
--- a/drivers/serial/serial_cadence.c
+++ b/drivers/serial/serial_cadence.c
@@ -212,6 +212,9 @@ static int cadence_serial_probe(struct device *dev)
cdev->getc = cadence_serial_getc;
cdev->flush = cadence_serial_flush;
cdev->setbrg = priv->clk ? cadence_serial_setbaudrate : NULL;
+ cdev->linux_console_name = "ttyPS";
+ cdev->linux_earlycon_name = "cdns";
+ cdev->phys_base = priv->regs;
cadence_serial_init_port(cdev);
--
2.39.5
next reply other threads:[~2025-07-14 7:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 7:12 Ahmad Fatoum [this message]
2025-07-14 7:12 ` [PATCH 2/2] ARM: zynq: drop the board-specific environment Ahmad Fatoum
2025-07-15 6:25 ` Gwenhael Goavec-Merou
2025-07-15 6:25 ` [PATCH 1/2] serial: cadence: support console= and earlycon= fixups Gwenhael Goavec-Merou
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=20250714071249.2428110-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
--cc=gwenhael.goavec-merou@trabucayre.com \
/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