summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-05-23 11:25:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-09 11:24:13 +0200
commit52885fdc9d181cb08c8660979dfb4287b8288130 (patch)
tree8d5d819f79973d6200c83a4efb68a65d6e94262b /drivers/serial
parent5b17b30a153b0f255e91bd5b54308b81b40887ee (diff)
downloadbarebox-52885fdc9d181cb08c8660979dfb4287b8288130.tar.gz
serial: atmel: add $global.bootm.earlycon fixup support
Allow barebox compute a suitable earlycon parameter. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220523092526.791716-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/atmel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c
index f83835da9a..9e20754998 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);