public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 04/29] Convert CONFIG_SYS_CONSOLE_IS_IN_ENV et al to Kconfig
Date: Tue, 27 Sep 2016 21:47:05 -0400	[thread overview]
Message-ID: <20160928014705.GY4884@bill-the-cat> (raw)
In-Reply-To: <1474762645-18544-5-git-send-email-sjg@chromium.org>

On Sat, Sep 24, 2016 at 06:17:00PM -0600, Simon Glass wrote:
> This converts the following to Kconfig:
>    CONFIG_SYS_CONSOLE_IS_IN_ENV
>    CONFIG_CONSOLE_MUX
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> Changes in v2:
> - Make CONSOLE_MUX default y if DM_VIDEO || VIDEO || LCD
> 
>  README                                               |  6 ------
>  common/Kconfig                                       | 20 ++++++++++++++++++++
[snip]
> diff --git a/common/Kconfig b/common/Kconfig
> index 6ee67ac..8e600f7 100644
> --- a/common/Kconfig
> +++ b/common/Kconfig
> @@ -288,6 +288,26 @@ 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"
> +	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.

OK, it looks like we should say SYS_CONSOLE_IS_IN_ENV is default y if
CONSOLE_MUX.  This won't cover all of the defconfig additions (something
else needs to be done for boards with > 1 uart and not all of that is in
Kconfig yet either) but it will help.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160927/d66bee07/attachment.sig>

  reply	other threads:[~2016-09-28  1:47 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-25  0:16 [U-Boot] [PATCH v2 00/29] Kconfig: Move console options to Kconfig Simon Glass
2016-09-25  0:16 ` [U-Boot] [PATCH v2 01/29] Remove some merge markers Simon Glass
2016-09-25  0:16 ` [U-Boot] [PATCH v2 02/29] Convert SILENT_CONSOLE options to Kconfig Simon Glass
2016-09-28  1:46   ` Tom Rini
2016-09-25  0:16 ` [U-Boot] [PATCH v2 03/29] Convert CONSOLE_PRE_CONSOLE_BUFFER " Simon Glass
2016-09-28  1:47   ` Tom Rini
2016-09-25  0:17 ` [U-Boot] [PATCH v2 04/29] Convert CONFIG_SYS_CONSOLE_IS_IN_ENV et al " Simon Glass
2016-09-28  1:47   ` Tom Rini [this message]
2016-09-25  0:17 ` [U-Boot] [PATCH v2 05/29] config: Drop CONFIG_CONSOLE Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 06/29] config: Drop CONFIG_CONSOLE_DEV Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 07/29] Convert CONFIG_VIDEO to Kconfig Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 08/29] Convert CONFIG_CFB_CONSOLE " Simon Glass
2016-09-28  1:47   ` Tom Rini
2016-09-25  0:17 ` [U-Boot] [PATCH v2 09/29] Convert CONFIG_CFB_CONSOLE_ANSI " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 10/29] Convert CONFIG_VIDEO_CT69000 " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 11/29] Convert CONFIG_SYS_CONSOLE_BG_COL et al " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 12/29] video: Drop the smiLynxEM driver Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 13/29] video: Drop the imx25lcdc driver Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 14/29] video: Drop the s3c-fb driver Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 15/29] video: Drop the sed13806 driver Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 16/29] Convert CONFIG_VGA_AS_SINGLE_DEVICE to Kconfig Simon Glass
2016-09-28  1:47   ` Tom Rini
2016-09-25  0:17 ` [U-Boot] [PATCH v2 17/29] video: Drop CONFIG_VIDEO_HW_CURSOR Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 18/29] Convert CONFIG_VIDEO_SW_CURSOR to Kconfig Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 19/29] video: Drop CONFIG_VIDEO_SW_CURSOR Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 20/29] Convert CONFIG_CONSOLE_EXTRA_INFO to Kconfig Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 21/29] video: Move video_get_info_str() prototype to a header file Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 22/29] video: Drop CONFIG_CONSOLE_INFO_QUIET Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 23/29] Convert CONFIG_LCD to Kconfig Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 24/29] Convert CONFIG_CONSOLE_SCROLL_LINES " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 25/29] Convert CONFIG_SYS_CONSOLE_ENV_OVERWRITE " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 26/29] Convert CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE " Simon Glass
2016-09-25  0:17 ` [U-Boot] [PATCH v2 27/29] Convert CONFIG_SYS_CONSOLE_INFO_QUIET " Simon Glass
2016-09-28  1:47   ` Tom Rini
2016-09-25  0:17 ` [U-Boot] [PATCH v2 28/29] Convert CONFIG_USB_KEYBOARD " Simon Glass
2016-09-28  1:47   ` Tom Rini
2016-09-25  0:17 ` [U-Boot] [PATCH v2 29/29] Convert CONFIG_SYS_STDIO_DEREGISTER " Simon Glass
2016-09-28  1:47   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160928014705.GY4884@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox