* [PATCH] serial: amba-pl011: set linux_console_name
@ 2020-05-29 12:51 Michael Grzeschik
2020-06-03 6:17 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Michael Grzeschik @ 2020-05-29 12:51 UTC (permalink / raw)
To: barebox
We set the linux_console_name so for this uart the
linux.bootargs.console will be properly set.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
drivers/serial/amba-pl011.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index 0751c52513..865ecdddb2 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -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);
--
2.26.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: amba-pl011: set linux_console_name
2020-05-29 12:51 [PATCH] serial: amba-pl011: set linux_console_name Michael Grzeschik
@ 2020-06-03 6:17 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-06-03 6:17 UTC (permalink / raw)
To: Michael Grzeschik; +Cc: barebox
On Fri, May 29, 2020 at 02:51:02PM +0200, Michael Grzeschik wrote:
> We set the linux_console_name so for this uart the
> linux.bootargs.console will be properly set.
>
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
> drivers/serial/amba-pl011.c | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
> index 0751c52513..865ecdddb2 100644
> --- a/drivers/serial/amba-pl011.c
> +++ b/drivers/serial/amba-pl011.c
> @@ -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);
>
> --
> 2.26.2
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-03 6:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 12:51 [PATCH] serial: amba-pl011: set linux_console_name Michael Grzeschik
2020-06-03 6:17 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox