diff options
Diffstat (limited to 'common/console_simple.c')
-rw-r--r-- | common/console_simple.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/console_simple.c b/common/console_simple.c index 42224842c5..3b95570e5e 100644 --- a/common/console_simple.c +++ b/common/console_simple.c @@ -92,7 +92,10 @@ int console_register(struct console_device *newcdev) newcdev->setbrg(newcdev, newcdev->baudrate); } - newcdev->f_active = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR; + newcdev->f_active = CONSOLE_STDIOE; + + if (IS_ENABLED(CONFIG_CONSOLE_DISABLE_INPUT)) + newcdev->f_active = ~CONSOLE_STDIN; barebox_banner(); |