summaryrefslogtreecommitdiff
path: root/board/cheza/board.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-08-08 11:40:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-08 23:52:13 -0700
commit1921d67b708943d972c9c6f239863079040efe84 (patch)
tree840a56b023f1937849b38e85b2d8a0c4525cc656 /board/cheza/board.h
parent0053a564e8ed3b529a599aea2e1bd10bce6be60b (diff)
downloadchrome-ec-1921d67b708943d972c9c6f239863079040efe84.tar.gz
cheza: Enable PD debug messages and suppress HC/event messages
Better to debug PD related issues. The HC/event messages are massive. Suppress them by default. They can be enabled through the console command 'chan'. BRANCH=none BUG=b:74395451 TEST=Checked the PD debug messages and "chan" shows HC and event channels are suppressed. Change-Id: I6e33b550569513c81507c0affded9de431ce139c Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1167984 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/cheza/board.h')
-rw-r--r--board/cheza/board.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h
index b649464295..811dfba33a 100644
--- a/board/cheza/board.h
+++ b/board/cheza/board.h
@@ -11,6 +11,14 @@
/* TODO(waihong): Remove the following bringup features */
#define CONFIG_BRINGUP
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands. */
+#define CONFIG_USB_PD_DEBUG_LEVEL 3
+
+/*
+ * By default, enable all console messages excepted event and HC:
+ * The sensor stack is generating a lot of activity.
+ * They can be enabled through the console command 'chan'.
+ */
+#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_EVENTS) | CC_MASK(CC_HOSTCMD)))
/* NPCX7 config */
#define NPCX_UART_MODULE2 1 /* GPIO64/65 are used as UART pins. */