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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow barebox compute a suitable console= and earlycon parameter.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux