From a823e6d96f28928d5808149c51cd8f4963b4880e Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Thu, 2 May 2019 13:56:21 -0700 Subject: baseboard: hatch: Limit printf on serial console Once Sensors are enabled, there is a lot of host command traffic. Change chan mask to prevent printf overload. BUG=None BRANCH=master TEST=Less printf on the console. Change-Id: I5462e1220949821034fa4001bb5cd11942d48c70 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/1593952 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Enrico Granata Reviewed-by: Tim Wawrzynczak Reviewed-by: Scott Collyer --- baseboard/hatch/baseboard.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/baseboard/hatch/baseboard.h b/baseboard/hatch/baseboard.h index 9ca6230e70..a3e22171a1 100644 --- a/baseboard/hatch/baseboard.h +++ b/baseboard/hatch/baseboard.h @@ -8,6 +8,14 @@ #ifndef __CROS_EC_BASEBOARD_H #define __CROS_EC_BASEBOARD_H +/* + * By default, enable all console messages excepted HC, ACPI and event: + * The sensor stack is generating a lot of activity. + */ +#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_EVENTS) | CC_MASK(CC_LPC))) +#undef CONFIG_HOSTCMD_DEBUG_MODE +#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF + /* NPCX7 config */ #define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ #define NPCX_UART_MODULE2 1 /* GPIO64/65 are used as UART pins. */ -- cgit v1.2.1