[PATCH 5/8] serial: imx: add $global.bootm.earlycon fixup support

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


Allow barebox compute a suitable earlycon parameter.

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

diff --git a/drivers/serial/serial_imx.c b/drivers/serial/serial_imx.c
index 6a933c930e9b..cf9c3f02a7ef 100644
--- a/drivers/serial/serial_imx.c
+++ b/drivers/serial/serial_imx.c
@@ -234,6 +234,8 @@ static int imx_serial_probe(struct device_d *dev)
 	cdev->flush = imx_serial_flush;
 	cdev->setbrg = imx_serial_setbaudrate;
 	cdev->linux_console_name = "ttymxc";
+	cdev->linux_earlycon_name = "ec_imx6q";
+	cdev->phys_base = priv->regs;
 	if (dev->device_node) {
 		devname = of_alias_get(dev->device_node);
 		if (devname) {
-- 
2.30.2




More information about the barebox mailing list