From: Lothar Waßmann Date: Fri, 16 Jun 2017 11:49:38 +0000 (+0200) Subject: karo: tx6: enable silent console X-Git-Tag: KARO-TX6-SILENT-2017-06-16~1 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=30a5cf24c7006ccb6615f1d29c65cd45b6f63c91 karo: tx6: enable silent console 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. --- diff --git a/include/configs/tx6.h b/include/configs/tx6.h index e64eebb737..1e1a621717 100644 --- a/include/configs/tx6.h +++ b/include/configs/tx6.h @@ -233,6 +233,7 @@ "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 */ @@ -276,6 +277,12 @@ #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 /*