diff options
author | Denis Brockus <dbrockus@google.com> | 2021-08-10 14:06:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-12 21:23:40 +0000 |
commit | beafd805fbd49a730e63610ab33183f99cf304eb (patch) | |
tree | e6457e6b0829ce59a9a63e30806073010430ef66 /zephyr/shim | |
parent | 5713f5cd0c01155603bc6e9cbc15855303e2a6c4 (diff) | |
download | chrome-ec-beafd805fbd49a730e63610ab33183f99cf304eb.tar.gz |
zephyr: shim: add CONFIG_HOSTCMD_DEBUG shim
BUG=b:195948807
BRANCH=none
TEST=zmake configure -b $PROJ_HAYATO
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I6de387725db11ad00356c7cf47cb9c0e2e109652
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3087619
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim')
-rw-r--r-- | zephyr/shim/include/config_chip.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index deeebbd625..639f71b266 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -1744,4 +1744,15 @@ #define CONFIG_FW_RESET_VECTOR #endif +#undef CONFIG_HOSTCMD_DEBUG_MODE +#if defined(CONFIG_HCDEBUG_OFF) +#define CONFIG_HOSTCMD_DEBUG_MODE 0 +#elif defined(CONFIG_HCDEBUG_NORMAL) +#define CONFIG_HOSTCMD_DEBUG_MODE 1 +#elif defined(CONFIG_HCDEBUG_EVERY) +#define CONFIG_HOSTCMD_DEBUG_MODE 2 +#elif defined(CONFIG_HCDEBUG_PARAMS) +#define CONFIG_HOSTCMD_DEBUG_MODE 3 +#endif + #endif /* __CROS_EC_CONFIG_CHIP_H */ |