summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-11-26 13:08:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-22 07:53:21 +0100
commitdac65f99e8bf1fbe2e15fa96ef901623bb49dc89 (patch)
treeee748a61dd9c8eb8148bc440e8a8df5597637f4e /include/console.h
parent1ebf5ff0c18a44c968533bc47d9f26215ffb779d (diff)
downloadbarebox-dac65f99e8bf1fbe2e15fa96ef901623bb49dc89.tar.gz
barebox-dac65f99e8bf1fbe2e15fa96ef901623bb49dc89.tar.xz
console: Set Linux console parameter automatically
Linux specifies the linux,stdout-path property in the /chosen node in the devicetree. Unfortunately this is ignored in most cases. For cases in which barebox uses this property for its own use we translate this into a Linux boot arg with: - the console name provided by the serial driver - the the instance from the 'serial' alias - the baudrate from the actual baudrate. So with this it's for devicetee enabled boards no longer necessary to manually assign a console= parameter. Should a user not want to use the automatically assigned parameter it should do: global.linux.bootargs.console= in the environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 550b440376..6da0199aba 100644
--- a/include/console.h
+++ b/include/console.h
@@ -49,6 +49,8 @@ struct console_device {
unsigned char f_active;
unsigned int baudrate;
+
+ const char *linux_console_name;
};
int console_register(struct console_device *cdev);