summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/Kconfig12
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 43a1919f80..76656db3e7 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -360,6 +360,18 @@ config PLATFORM_EC_CONSOLE_CMD_FLASH
flashwp - change write-protection settings
flashwrite - write memory to flash
+config PLATFORM_EC_CONSOLE_CMD_SYSJUMP
+ bool "Console command: sysjump"
+ default y
+ help
+ Enables the sysjump console command used for testing and verifying
+ that we're able to jump between images. Normally, in an EC build,
+ there will exist 2 images (sometimes more): read-only (RO) and
+ read-write (RW). This console command allows us to manually jump
+ between the various images (or even to a random starting address) by
+ copying the image data from flash to ram, then jumping to the image's
+ entry point.
+
config PLATFORM_EC_EXTERNAL_STORAGE
bool "Flash is stored external to the EC"
default y if SOC_FAMILY_NPCX
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 4298c5651d..fbc7689c34 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1134,4 +1134,9 @@ enum battery_type {
#define CONFIG_MPU
#endif
+#undef CONFIG_CMD_SYSJUMP
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_SYSJUMP
+#define CONFIG_CMD_SYSJUMP
+#endif
+
#endif /* __CROS_EC_CONFIG_CHIP_H */