summaryrefslogtreecommitdiff
path: root/zephyr/shim/include
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2021-07-27 09:11:51 -0600
committerCommit Bot <commit-bot@chromium.org>2021-07-28 16:41:52 +0000
commitc968dfd543af66c4522ebc6b32a706aba17421e8 (patch)
tree976fb36ba0cd44b4684eae999ee069d80c7651c3 /zephyr/shim/include
parentf73fa8e9069e72848d977f5427afe8c30df4e77a (diff)
downloadchrome-ec-c968dfd543af66c4522ebc6b32a706aba17421e8.tar.gz
zephyr: ite: add CONFIG_PLATFORM_EC_FW_RESET_VECTOR
CONFIG_PLATFORM_EC_FW_RESET_VECTOR is used to control CONFIG_FW_RESET_VECTOR in the existing cros-ec code. This allows a chip specific function to be called to obtain the firmware reset vector. BUG=b:194794622 BRANCH=none TEST=zmake configure -b $PROJ_HAYATO Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I49000bc557f86f74af0d8429af6939ad340f21d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3056514 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/shim/include')
-rw-r--r--zephyr/shim/include/config_chip.h5
1 files changed, 5 insertions, 0 deletions
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 */