From 9010da429dc83dab3e961d76987f809cc3d4379a Mon Sep 17 00:00:00 2001 From: Wealian Liao Date: Thu, 8 Jul 2021 16:05:33 +0800 Subject: 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 Change-Id: I5d7e536298f74d93e420b90c72702df80f02fa4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3067155 Reviewed-by: Yuval Peress Reviewed-by: Keith Short Commit-Queue: Keith Short --- zephyr/Kconfig.system | 7 +++++++ zephyr/shim/include/config_chip.h | 5 +++++ 2 files changed, 12 insertions(+) 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 -- cgit v1.2.1