diff options
author | Wai-Hong Tam <waihong@google.com> | 2018-08-08 11:40:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-08 23:52:13 -0700 |
commit | 1921d67b708943d972c9c6f239863079040efe84 (patch) | |
tree | 840a56b023f1937849b38e85b2d8a0c4525cc656 /board/cheza/board.h | |
parent | 0053a564e8ed3b529a599aea2e1bd10bce6be60b (diff) | |
download | chrome-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.h | 8 |
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. */ |