summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-05-23 11:25:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-09 11:22:23 +0200
commitd17f29dba03058294ccc9fed73af3d34014e4d6a (patch)
treea254a3b2ae53549ca8cda9f46b946191a17756ea /include
parente72bdad5c112935922adc4d389a13e0cc66c9539 (diff)
downloadbarebox-d17f29dba03058294ccc9fed73af3d34014e4d6a.tar.gz
barebox-d17f29dba03058294ccc9fed73af3d34014e4d6a.tar.xz
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 <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220523092526.791716-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/console.h2
1 files changed, 2 insertions, 0 deletions
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;