public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected
Date: Fri, 15 May 2015 15:06:36 +0200	[thread overview]
Message-ID: <5555EF5C.4030600@denx.de> (raw)
In-Reply-To: <1430860162-24034-2-git-send-email-smoch@web.de>

On 05/05/2015 23:09, Soeren Moch wrote:
> Only enable graphical output for stdout/stderr (and a usb keyboard for stdin)
> when a hdmi device is detected.
> Serial console is always enabled for stdin/stdout/stderr.
> 
> Signed-off-by: Soeren Moch <smoch@web.de>
> ---
> Cc: Stefano Babic <sbabic@denx.de>
> ---
>  include/configs/tbs2910.h | 17 +++++++++++++----
>  1 file changed, 13 insertions(+), 4 deletions(-)
> 
> diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
> index e5828e0..ea4666d 100644
> --- a/include/configs/tbs2910.h
> +++ b/include/configs/tbs2910.h
> @@ -183,7 +183,13 @@
>  #ifdef CONFIG_USB_KEYBOARD
>  #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
>  #define CONFIG_SYS_STDIO_DEREGISTER
> -#define CONFIG_PREBOOT "if hdmidet; then usb start; fi"
> +#define CONFIG_PREBOOT \
> +	"if hdmidet; then " \
> +		"usb start; " \
> +		"run set_con_usb_hdmi; " \
> +	"else " \
> +		"run set_con_serial; " \
> +	"fi;"
>  #endif /* CONFIG_USB_KEYBOARD */
>  #endif /* CONFIG_CMD_USB      */
>  
> @@ -241,9 +247,12 @@
>  			"bootm 0x10800000 0x10d00000\0" \
>  	"console=ttymxc0\0" \
>  	"fan=gpio set 92\0" \
> -	"stdin=serial,usbkbd\0" \
> -	"stdout=serial,vga\0" \
> -	"stderr=serial,vga\0"
> +	"set_con_serial=setenv stdin serial; " \
> +			"setenv stdout serial; " \
> +			"setenv stderr serial;\0" \
> +	"set_con_usb_hdmi=setenv stdin serial,usbkbd; " \
> +			"setenv stdout serial,vga; " \
> +			"setenv stderr serial,vga;\0"
>  
>  #define CONFIG_BOOTCOMMAND \
>  	"mmc rescan; " \
> 

Applied to u-boot-imx, thanks !

Best regards,
     Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2015-05-15 13:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 21:09 [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode Soeren Moch
2015-05-05 21:09 ` [U-Boot] [PATCH 2/5] tbs2910: only enable vga output for stdout/stderr when hdmi detected Soeren Moch
2015-05-15 13:06   ` Stefano Babic [this message]
2015-05-05 21:09 ` [U-Boot] [PATCH 3/5] tbs2910: use default CONFIG_SYS_PBSIZE Soeren Moch
2015-05-15 13:06   ` Stefano Babic
2015-05-05 21:09 ` [U-Boot] [PATCH 4/5] tbs2910: add CONFIG_SUPPORT_EMMC_BOOT Soeren Moch
2015-05-15 13:06   ` Stefano Babic
2015-05-05 21:09 ` [U-Boot] [PATCH 5/5] tbs2910: add ext4 write support Soeren Moch
2015-05-11 18:12   ` Soeren Moch
2015-05-15 13:06 ` [U-Boot] [PATCH 1/5] tbs2910: support for usb otg host mode Stefano Babic

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=5555EF5C.4030600@denx.de \
    --to=sbabic@denx.de \
    --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