summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2021-08-10 14:06:18 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-12 21:23:40 +0000
commitbeafd805fbd49a730e63610ab33183f99cf304eb (patch)
treee6457e6b0829ce59a9a63e30806073010430ef66 /zephyr/Kconfig
parent5713f5cd0c01155603bc6e9cbc15855303e2a6c4 (diff)
downloadchrome-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/Kconfig')
-rw-r--r--zephyr/Kconfig42
1 files changed, 35 insertions, 7 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 3b4a6ead7b..7041fd63ef 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -214,13 +214,7 @@ config PLATFORM_EC_CONSOLE_CMD_HCDEBUG
hcdebug [off | normal | every | params]
- off - No host command debug messages are shown.
- normal - Display host commands receieved from the AP. Repeated
- commands are shown with a "+" and "++" symbol.
- every - Display all host commands received from the AP, including
- repeated commands.
- params - Display all host commands and the parameters received from
- the AP.
+ See PLATFORM_EC_HOSTCMD_DEBUG_MODE for more detail.
config PLATFORM_EC_CONSOLE_CMD_MEM
bool "Console command: md, rw"
@@ -391,6 +385,40 @@ config PLATFORM_EC_HOSTCMD_REGULATOR
regulator. The board should also implement board functions defined in
include/regulator.h.
+choice PLATFORM_EC_HOSTCMD_DEBUG_MODE
+ prompt "Select method to use for HostCmd Debug Mode"
+ depends on PLATFORM_EC_HOSTCMD
+ default HCDEBUG_NORMAL
+ help
+ Sets the value of the host command debug mode to use on
+ startup.
+
+config HCDEBUG_OFF
+ bool "Host command debug mode OFF"
+ help
+ No host command debug messages are shown. Host
+ command error messages will still output.
+
+config HCDEBUG_NORMAL
+ bool "Host command debug mode NORMAL"
+ help
+ Display host commands receieved from the AP. Repeated
+ commands are shown with a "+" and "++" symbol.
+
+config HCDEBUG_EVERY
+ bool "Host command debug mode EVERY"
+ help
+ Display all host commands received from the AP,
+ including repeated commands.
+
+config HCDEBUG_PARAMS
+ bool "Host command debug mode PARAMS"
+ help
+ Display all host commands and the parameters received
+ from the AP.
+
+endchoice # PLATFORM_EC_HOSTCMD_DEBUG_MODE
+
config PLATFORM_EC_I2C
bool "I2C shim"
default n if ARCH_POSIX