summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-07-08 16:05:33 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-02 23:09:48 +0000
commit9010da429dc83dab3e961d76987f809cc3d4379a (patch)
tree4d51f3539bfc4e5b197e58ae51bcb30961cad6b7 /zephyr
parent81ea35f9c0ca50aa3c7013beaf8cd4decd821fc3 (diff)
downloadchrome-ec-9010da429dc83dab3e961d76987f809cc3d4379a.tar.gz
zephyr: Add scratchpad console command enable option
This CL adds scratchpad console command enable options in Kconfig. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I5d7e536298f74d93e420b90c72702df80f02fa4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067155 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr')
-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 be7dae8e6f..c9b67a6ab7 100644
--- a/zephyr/Kconfig.system
+++ b/zephyr/Kconfig.system
@@ -4,6 +4,13 @@
if PLATFORM_EC
+config PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD
+ bool "Console Command: scratchpad"
+ help
+ Enable the scratchpad console command. The scratchpad register
+ maintain its contents across a software-requested warm reset. The
+ command is used to set or get the scratchpad.
+
config PLATFORM_EC_CONSOLE_CMD_SYSINFO
bool "Console Command: sysinfo"
default y
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index b81ff93eeb..f49e1a05d8 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1504,6 +1504,11 @@
#define CONFIG_CMD_SYSINFO
#endif
+#undef CONFIG_CMD_SCRATCHPAD
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD
+#define CONFIG_CMD_SCRATCHPAD
+#endif
+
#undef CONFIG_CMD_SYSJUMP
#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_SYSJUMP
#define CONFIG_CMD_SYSJUMP