]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - common/Kconfig
Convert CONFIG_SYS_CONSOLE_IS_IN_ENV and CONFIG_CONSOLE_MUX to Kconfig
[thirdparty/u-boot.git] / common / Kconfig
index 7988de278b605b6348fcf4ef37a34e4f5d5ddc81..3be424488ef994e11c13b404fd26831fcbbce10b 100644 (file)
@@ -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