karo: tx6: enable silent console
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 16 Jun 2017 11:49:38 +0000 (13:49 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 16 Jun 2017 11:49:38 +0000 (13:49 +0200)
Silence console output to avoid irritation of equipment connected to
the console UART.
Set the variable 'silent' in the compiled-in environment, so that
actually _all_ console output is silenced. Otherwise 'silent' would
only be activated after reading the env from mass storage.

Note: to reactivate console output for debugging purposes from the
command prompt, the env variable 'silent' has to change state from
defined to undefined. So, if the variable is not set in the saved
environment, it has to be set (to an arbitrary value) and removed
afterwards.

include/configs/tx6.h

index e64eebb..1e1a621 100644 (file)
        "nfsroot=/tftpboot/rootfs\0"                                    \
        "otg_mode=device\0"                                             \
        ROOTPART_UUID_STR                                               \
+       "silent=1\0"                                                    \
        "touchpanel=tsc2007\0"                                          \
        "video_mode=" DEFAULT_VIDEO_MODE "\0"
 #endif /*  CONFIG_ENV_IS_NOWHERE */
 #define CONFIG_BAUDRATE                        115200          /* Default baud rate */
 #define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, }
 #define CONFIG_SYS_CONSOLE_INFO_QUIET
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define CONFIG_SILENT_CONSOLE
+#define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET
+#define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC
+#define CONFIG_SILENT_U_BOOT_ONLY
+#define CONFIG_SYS_DEVICE_NULLDEV
 #define CONFIG_CONS_INDEX              1
 
 /*