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

login
register
mail settings
Submitter Stephen Warren
Date Nov. 28, 2012, 5:50 p.m.
Message ID <1354125012-8877-2-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/202513/
State Accepted
Delegated to: Tom Warren
Headers show

Comments

Stephen Warren - Nov. 28, 2012, 5:50 p.m.
From: Stephen Warren <swarren@nvidia.com>

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

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

Patch

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 */