[U-Boot] [PATCH 2/3] tegra: add LCD into default TEGRA_DEVICE_SETTINGS

Stephen Warren swarren at wwwdotorg.org
Wed Nov 28 18:50:11 CET 2012


From: Stephen Warren <swarren at nvidia.com>

If LCD support is enabled, ensure that stdout and stderr are sent to the
LCD too.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 include/configs/tegra-common-post.h |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index 1662844..c9c49d9 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -161,10 +161,16 @@
 #define STDIN_KBD_USB ""
 #endif
 
+#ifdef CONFIG_VIDEO_TEGRA
+#define STDOUT_LCD ",lcd"
+#else
+#define STDOUT_LCD ""
+#endif
+
 #define TEGRA_DEVICE_SETTINGS \
 	"stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB "\0" \
-	"stdout=serial\0" \
-	"stderr=serial\0" \
+	"stdout=serial" STDOUT_LCD "\0" \
+	"stderr=serial" STDOUT_LCD "\0" \
 
 #endif /* TEGRA_DEVICE_SETTINGS */
 
-- 
1.7.10.4



More information about the U-Boot mailing list