summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-06-18 01:11:32 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-18 16:32:31 +0000
commit3b2e7e38b68e2bedf843e938747d2456c2ed4529 (patch)
tree7bb84974082897ac64fe0b195f908de35ec9e61d
parentee78ebcfaed5949ba01e2dfa435c84778011da11 (diff)
downloadchrome-ec-3b2e7e38b68e2bedf843e938747d2456c2ed4529.tar.gz
poppy: Change console default to not overload cros_ec.log
Use standard default to prevent sensor commands to fill /var/log/cros_ec.log. BUG=none BRANCH=poppy TEST=Check cros_ec.log is not filled with command 0x2b. Change-Id: Iac3b64dd4058683e03328a291fcb5bc6f8091932 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2251362 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r--board/poppy/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/poppy/board.h b/board/poppy/board.h
index 5c39e7ecfb..d1f4585b95 100644
--- a/board/poppy/board.h
+++ b/board/poppy/board.h
@@ -8,6 +8,14 @@
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_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
+
/* EC */
#define CONFIG_ADC
#define CONFIG_BACKLIGHT_LID