[U-Boot] [PATCH] ARM: tegra: enable STDIO deregistration

Simon Glass sjg at chromium.org
Mon Apr 13 19:22:44 CEST 2015


Hi Stephen,

On 13 April 2015 at 11:11, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> At the very least when USB keyboard support is enabled, we need to enable
> CONFIG_SYS_STDIO_DEREGISTER, so the "usb reset" is able to re-scan USB
> ports and find new devices.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> This feels like a nice fix for the upcoming release if possible. Even if
> this causes horrible fallout (which I do not expect), it'll only affect
> Seaboard and Ventana boards, both of which have quite limited
> distribution.

Reviewed-by: Simon Glass <sjg at chromium.org>

I wonder whether you might want to (post-release) enable this always
on Tegra, except for SPL?

> ---
>  include/configs/tegra-common-post.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
> index 31096d068bb1..e792e02fd923 100644
> --- a/include/configs/tegra-common-post.h
> +++ b/include/configs/tegra-common-post.h
> @@ -26,10 +26,11 @@
>  #define STDIN_KBD_KBC ""
>  #endif
>
> -#ifdef CONFIG_USB_KEYBOARD
> +#if defined(CONFIG_USB_KEYBOARD) && !defined(CONFIG_SPL_BUILD)
>  #define STDIN_KBD_USB ",usbkbd"
>  #define CONFIG_SYS_USB_EVENT_POLL
>  #define CONFIG_PREBOOT                 "usb start"
> +#define CONFIG_SYS_STDIO_DEREGISTER
>  #else
>  #define STDIN_KBD_USB ""
>  #endif
> --
> 1.9.1
>

Regards,
Simon


More information about the U-Boot mailing list