diff options
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig.system | 7 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
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 |