[PATCH 6/8] serial: litex: add linux console/earlycon fixup support

Ahmad Fatoum a.fatoum at pengutronix.de
Mon May 23 02:25:24 PDT 2022


Allow barebox compute a suitable console= and earlycon parameter.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/serial/serial_litex.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/serial/serial_litex.c b/drivers/serial/serial_litex.c
index 3643427ef408..554fee71a3c4 100644
--- a/drivers/serial/serial_litex.c
+++ b/drivers/serial/serial_litex.c
@@ -74,6 +74,9 @@ static int litex_serial_probe(struct device_d *dev)
 	cdev->putc = &litex_serial_putc;
 	cdev->getc = &litex_serial_getc;
 	cdev->setbrg = NULL;
+	cdev->linux_console_name = "ttyLXU";
+	cdev->linux_earlycon_name = "liteuart";
+	cdev->phys_base = IOMEM(iores->start);
 
 	console_register(cdev);
 
-- 
2.30.2




More information about the barebox mailing list