Skip to contentSkip to conversation

serial: amba-pl011: set linux_console_name

PATCH Applied Michael Grzeschik 2 participants 2 messages May 29, 2020 – Jun 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: amba-pl011: set linux_console_name

We set the linux_console_name so for this uart the linux.bootargs.console will be properly set.

---
 drivers/serial/amba-pl011.c | 1 +
 1 file changed, 1 insertion(+)
drivers/serial/amba-pl011.c +1 -0
index 0751c52513..865ecdddb2 100644
@@ -204,6 +204,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
 	cdev->putc = pl011_putc;
 	cdev->getc = pl011_getc;
 	cdev->setbrg = pl011_setbaudrate;
+	cdev->linux_console_name = "ttyAMA";
 
 	pl011_init_port(cdev);
 
Signature · 7 lines
2.26.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 7 lines · Michael Grzeschik

We set the linux_console_name so for this uart the linux.bootargs.console will be properly set.

---
 drivers/serial/amba-pl011.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Sascha

Quoted 22 lines
drivers/serial/amba-pl011.c +1 -0
index 0751c52513..865ecdddb2 100644
@@ -204,6 +204,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
 	cdev->putc = pl011_putc;
 	cdev->getc = pl011_getc;
 	cdev->setbrg = pl011_setbaudrate;
+	cdev->linux_console_name = "ttyAMA";
 
 	pl011_init_port(cdev);
 
Signature · 7 lines
2.26.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox