Root/package/uboot-xburst/patches/0005-enable-silent-console.patch

1From 81845d9509b03ca21c4fc31c85bca52e7a926acc Mon Sep 17 00:00:00 2001
2From: Xiangfu <xiangfu@openmobilefree.net>
3Date: Wed, 10 Oct 2012 23:51:26 +0800
4Subject: [PATCH 5/5] enable silent console
5
6---
7 common/console.c | 16 ++++++++++++++++
8 include/configs/qi_lb60.h | 2 ++
9 2 files changed, 18 insertions(+)
10
11diff --git a/common/console.c b/common/console.c
12index 1177f7d..e8a2078 100644
13--- a/common/console.c
14+++ b/common/console.c
15@@ -685,6 +685,14 @@ done:
16 
17     gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */
18 
19+#ifdef CONFIG_SILENT_CONSOLE
20+ /* Check one more time the contents of the silent environment
21+ * variable, because if the environment is loaded from NAND it was
22+ * not available when console_init_f() was called */
23+ if (getenv("silent") != NULL)
24+ gd->flags |= GD_FLG_SILENT;
25+#endif
26+
27     stdio_print_current_devices();
28 
29 #ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
30@@ -760,6 +768,14 @@ int console_init_r(void)
31 
32     gd->flags |= GD_FLG_DEVINIT; /* device initialization completed */
33 
34+#ifdef CONFIG_SILENT_CONSOLE
35+ /* Check one more time the contents of the silent environment
36+ * variable, because if the environment is loaded from NAND it was
37+ * not available when console_init_f() was called */
38+ if (getenv("silent") != NULL)
39+ gd->flags |= GD_FLG_SILENT;
40+#endif
41+
42     stdio_print_current_devices();
43 
44     /* Setting environment variables */
45diff --git a/include/configs/qi_lb60.h b/include/configs/qi_lb60.h
46index 83c6116..56ec438 100644
47--- a/include/configs/qi_lb60.h
48+++ b/include/configs/qi_lb60.h
49@@ -102,6 +102,8 @@
50 #define CONFIG_SYS_NO_FLASH
51 #define CONFIG_SYS_FLASH_BASE 0 /* init flash_base as 0 */
52 
53+#define CONFIG_SILENT_CONSOLE 1 /* Enable silent console */
54+
55 /*
56  * Command line configuration
57  */
58--
591.7.9.5
60
61

Archive Download this file



interactive