summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-10-17 20:12:37 -0600
committerTom Rini <trini@konsulko.com>2016-10-23 18:33:35 -0400
commitef26d6039a14c03c516c09a7835b491e671a4b0b (patch)
treed9a6957ab0709cb6870f251d718ffb3dd5ed9afa /common
parentf8b19a889e0d9d21af4be6b0fd6363a5b5a546f7 (diff)
downloadu-boot-imx-ef26d6039a14c03c516c09a7835b491e671a4b0b.zip
u-boot-imx-ef26d6039a14c03c516c09a7835b491e671a4b0b.tar.gz
u-boot-imx-ef26d6039a14c03c516c09a7835b491e671a4b0b.tar.bz2
Convert CONFIG_SYS_CONSOLE_IS_IN_ENV and CONFIG_CONSOLE_MUX to Kconfig
This converts the following to Kconfig: CONFIG_SYS_CONSOLE_IS_IN_ENV CONFIG_CONSOLE_MUX Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Re-order, re-migrate] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig21
1 files changed, 21 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 7988de2..3be4244 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -288,6 +288,27 @@ config PRE_CON_BUF_ADDR
We should consider removing this option and allocating the memory
in board_init_f_init_reserve() instead.
+config CONSOLE_MUX
+ bool "Enable console multiplexing"
+ default y if DM_VIDEO || VIDEO || LCD
+ help
+ This allows multiple devices to be used for each console 'file'.
+ For example, stdout can be set to go to serial and video.
+ Similarly, stdin can be set to come from serial and keyboard.
+ Input can be provided from either source. Console multiplexing
+ adds a small amount of size to U-Boot. Changes to the environment
+ variables stdout, stdin and stderr will take effect immediately.
+
+config SYS_CONSOLE_IS_IN_ENV
+ bool "Select console devices from the environment"
+ default y if CONSOLE_MUX
+ help
+ This allows multiple input/output devices to be set at boot time.
+ For example, if stdout is set to "serial,video" then output will
+ be sent to both the serial and video devices on boot. The
+ environment variables can be updated after boot to change the
+ input/output devices.
+
endmenu
config SYS_NO_FLASH