mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] serial: cadence: support console= and earlycon= fixups
@ 2025-07-14  7:12 Ahmad Fatoum
  2025-07-14  7:12 ` [PATCH 2/2] ARM: zynq: drop the board-specific environment Ahmad Fatoum
  2025-07-15  6:25 ` [PATCH 1/2] serial: cadence: support console= and earlycon= fixups Gwenhael Goavec-Merou
  0 siblings, 2 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2025-07-14  7:12 UTC (permalink / raw)
  To: barebox; +Cc: Gwenhael Goavec-Merou, Ahmad Fatoum

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-15  6:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-14  7:12 [PATCH 1/2] serial: cadence: support console= and earlycon= fixups Ahmad Fatoum
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox