diff options
author | Denis Brockus <dbrockus@google.com> | 2021-07-27 09:09:17 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-28 00:04:51 +0000 |
commit | 4d71713791792036b22a0d52865413148c350506 (patch) | |
tree | d4a8914bdac23bd00142dfb31a648ff6cdbb2d2d /zephyr/shim/chip/it8xxx2 | |
parent | a1500ff6ae4c32859b962d45d865967ca9cfee52 (diff) | |
download | chrome-ec-4d71713791792036b22a0d52865413148c350506.tar.gz |
zephyr: ite: add system_get_fw_reset_vector to shim
ITE, can you verify using base for the reset vector
lines up with where you expect the reset vector to be
in the image
BUG=b:194794622
BRANCH=none
TEST=zmake configure -b $PROJ_HAYATO
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Id66c1613e4a89aad36f68a8d03d3079f9d035e94
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3056513
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/shim/chip/it8xxx2')
-rw-r--r-- | zephyr/shim/chip/it8xxx2/system.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/shim/chip/it8xxx2/system.c b/zephyr/shim/chip/it8xxx2/system.c index 0ec138a415..e40c49d137 100644 --- a/zephyr/shim/chip/it8xxx2/system.c +++ b/zephyr/shim/chip/it8xxx2/system.c @@ -83,3 +83,13 @@ static int chip_system_init(const struct device *unused) return 0; } SYS_INIT(chip_system_init, PRE_KERNEL_1, 15); + +uintptr_t system_get_fw_reset_vector(uintptr_t base) +{ + /* + * Because our reset vector is at the beginning of image copy + * (see init.S). So I just need to return 'base' here and EC will jump + * to the reset vector. + */ + return base; +} |