summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:01 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:01 +0200
commitf1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead (patch)
tree0f15f58d4594cc568bbae2172ec306d1773f8be1 /common/console.c
parent30528be5fca26decf1444b7b03f2ad50ac9b51b2 (diff)
downloadbarebox-f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead.tar.gz
barebox-f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead.tar.xz
svn_rev_525
make default behaviour of consoles configurable
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index ca11a514e7..270c927fee 100644
--- a/common/console.c
+++ b/common/console.c
@@ -69,9 +69,13 @@ int console_register(struct console_device *newcdev)
newcdev->active_param.name = "active";
newcdev->active_param.value = newcdev->active;
dev_add_param(dev, &newcdev->active_param);
+#ifdef CONFIG_CONSOLE_ACTIVATE_ALL
console_std_set(dev, &newcdev->active_param, "ioe");
-
+#endif
if (!first_console) {
+#ifdef CONFIG_CONSOLE_ACTIVATE_FIRST
+ console_std_set(dev, &newcdev->active_param, "ioe");
+#endif
first_console = newcdev;
return 0;
}