summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-04-21 16:09:40 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-22 01:11:50 +0000
commit11427bfeb18b81afeb5fcf67ed5205748ce5be20 (patch)
tree4b54e5e9c2ff21eb941c5116bba2475ba70d6b87
parentdec4d9ddfd30a978b0ddb2fe95d68f00b61e31ee (diff)
downloadchrome-ec-11427bfeb18b81afeb5fcf67ed5205748ce5be20.tar.gz
zephyr: create a Kconfig option for CONFIG_CMD_SYSINFO
Create a Kconfig option for the sysinfo console command, furthering our parity with EC configurability. This is by default enabled anyway, so the Kconfig is just providing a means to turn it off, if desired. (Which is useful for ITE chips right now, where we don't have full support for all the deps we bring in with this command yet.) BUG=b:180980668 BRANCH=none TEST=hayato build (follow-up CL) Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ibe2c2a4d7620ef60979b256735046379bf99e3e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845270 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/Kconfig.system7
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig.system b/zephyr/Kconfig.system
index d6fd5b07e0..f55e5ad7ed 100644
--- a/zephyr/Kconfig.system
+++ b/zephyr/Kconfig.system
@@ -4,6 +4,13 @@
if PLATFORM_EC
+config PLATFORM_EC_CONSOLE_CMD_SYSINFO
+ bool "Console Command: sysinfo"
+ default y
+ help
+ Enable the sysinfo console command, which shows statistics
+ about the current image copy running, reset flags, etc.
+
config PLATFORM_EC_HIBERNATE_PSL
bool "System hibernating with PSL (Power Switch Logic) mechanism"
depends on SOC_FAMILY_NPCX
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index e0ca82c1c9..dd0bd908d7 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1311,6 +1311,11 @@
#define CONFIG_MPU
#endif
+#undef CONFIG_CMD_SYSINFO
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_SYSINFO
+#define CONFIG_CMD_SYSINFO
+#endif
+
#undef CONFIG_CMD_SYSJUMP
#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_SYSJUMP
#define CONFIG_CMD_SYSJUMP