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

Stephen Warren swarren at wwwdotorg.org
Mon Apr 13 19:11:32 CEST 2015


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.
---
 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



More information about the U-Boot mailing list