[PATCH 4/8] serial: atmel: add $global.bootm.earlycon fixup support

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


Allow barebox compute a suitable earlycon parameter.

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

diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c
index f83835da9ab7..9e20754998e9 100644
--- a/drivers/serial/atmel.c
+++ b/drivers/serial/atmel.c
@@ -427,11 +427,14 @@ static int atmel_serial_probe(struct device_d *dev)
 	cdev->setbrg = atmel_serial_setbaudrate;
 	cdev->set_mode = atmel_serial_set_mode;
 	cdev->linux_console_name = "ttyAT";
+	cdev->linux_earlycon_name = "atmel_serial";
 
 	ret = atmel_serial_init_port(cdev);
 	if (ret)
 		return ret;
 
+	cdev->phys_base = uart->base;
+
 	/* Enable UART */
 
 	console_register(cdev);
-- 
2.30.2




More information about the barebox mailing list