summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/config_allowed.txt1
-rw-r--r--zephyr/Kconfig.system9
-rw-r--r--zephyr/shim/include/config_chip.h5
3 files changed, 14 insertions, 1 deletions
diff --git a/util/config_allowed.txt b/util/config_allowed.txt
index 51f5298d05..2843696cc9 100644
--- a/util/config_allowed.txt
+++ b/util/config_allowed.txt
@@ -451,7 +451,6 @@ CONFIG_FW_INCLUDE_RO
CONFIG_FW_LIMITED_IMAGE
CONFIG_FW_PSTATE_OFF
CONFIG_FW_PSTATE_SIZE
-CONFIG_FW_RESET_VECTOR
CONFIG_GESTURE_DETECTION
CONFIG_GESTURE_DETECTION_MASK
CONFIG_GESTURE_HOST_DETECTION
diff --git a/zephyr/Kconfig.system b/zephyr/Kconfig.system
index bac96beb20..be7dae8e6f 100644
--- a/zephyr/Kconfig.system
+++ b/zephyr/Kconfig.system
@@ -30,4 +30,13 @@ config PLATFORM_EC_SYSTEM_PRE_INIT_PRIORITY
those critical to determining the reset type, should be initialized at
lower priority so that the system reset flags are valid.
+config PLATFORM_EC_FW_RESET_VECTOR
+ bool "Firmware Reset Vector chip specific retrieval"
+ default y if SOC_FAMILY_RISCV_ITE
+ help
+ This defines if there is a chip specific machanism for
+ retrieving the firmware reset vector. The function that
+ needs to be provided is system_get_fw_reset_vector that
+ will return the address of the reset vector.
+
endif # PLATFORM_EC
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 01ab43d779..b81ff93eeb 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1728,4 +1728,9 @@
#define CONFIG_CMD_S5_TIMEOUT
#endif
+#undef CONFIG_FW_RESET_VECTOR
+#ifdef CONFIG_PLATFORM_EC_FW_RESET_VECTOR
+#define CONFIG_FW_RESET_VECTOR
+#endif
+
#endif /* __CROS_EC_CONFIG_CHIP_H */