summaryrefslogtreecommitdiffstats
path: root/common/console_simple.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-23 10:02:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-24 09:22:50 +0200
commit651a23a69e598658e05e9e55d390db3a3f2a738a (patch)
tree14dd52470e7886e91e20459ff9c01eaeaabdc5b6 /common/console_simple.c
parent770e1a4d630b08dc465cf93638635295ffbe0343 (diff)
downloadbarebox-651a23a69e598658e05e9e55d390db3a3f2a738a.tar.gz
console_simple: fix: set f_active
so generic code can check if the console is enabled and now we can use loadb & loadxy Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
-rw-r--r--common/console_simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 202d244..5ab937f 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -87,6 +87,8 @@ int console_register(struct console_device *newcdev)
newcdev->setbrg(newcdev, newcdev->baudrate);
}
+ newcdev->f_active = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR;
+
barebox_banner();
return 0;