From 5b17b30a153b0f255e91bd5b54308b81b40887ee Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 23 May 2022 11:25:21 +0200 Subject: serial: amba-pl011: add $global.bootm.earlycon fixup support Allow barebox compute a suitable earlycon parameter. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220523092526.791716-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- drivers/serial/amba-pl011.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/serial/amba-pl011.c') diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index 345c58e274..b53ff6877b 100644 --- a/drivers/serial/amba-pl011.c +++ b/drivers/serial/amba-pl011.c @@ -202,6 +202,8 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) cdev->getc = pl011_getc; cdev->setbrg = pl011_setbaudrate; cdev->linux_console_name = "ttyAMA"; + cdev->linux_earlycon_name = "pl011"; + cdev->phys_base = uart->base; pl011_init_port(cdev); -- cgit v1.2.3