From d17f29dba03058294ccc9fed73af3d34014e4d6a Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 23 May 2022 11:25:19 +0200 Subject: console: add new $global.bootm.earlycon parameter barebox already fixes up a suitable console= parameter if it can determine one into the kernel command line. This doesn't help with early Linux issues, which can instead be debugged by the earlycon mechanism. For earlycon to work, the kernel DT must have a stdout-path or the user needs to explicitly specify what driver to use and how to access it (base address, optionally access_type). Make this easier by just having barebox fix up the needed information when $global.bootm.earlycon is true and the barebox serial driver provides the needed information. If the serial driver doesn't, a plain "earlycon" parameter will be fixed up. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220523092526.791716-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- include/console.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/console.h b/include/console.h index 5d5783ca66..7fea8eeb9e 100644 --- a/include/console.h +++ b/include/console.h @@ -53,6 +53,8 @@ struct console_device { unsigned int baudrate_param; const char *linux_console_name; + const char *linux_earlycon_name; + void __iomem *phys_base; struct cdev devfs; struct cdev_operations fops; -- cgit v1.2.3