diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-06-25 11:51:03 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-26 04:07:10 +0000 |
commit | d4c7f30feeab294406e2643183c6bd7e3095edfe (patch) | |
tree | e35d30993df605e2076630be17f137f5d5bc48b3 /board/scarlet | |
parent | 62c32d5010d8d12ca53ac9205d7172300f9f22ea (diff) | |
download | chrome-ec-d4c7f30feeab294406e2643183c6bd7e3095edfe.tar.gz |
Swap system_jumped_to_this_image with system_jumped_latestabilize-quickfix-13310.91.B-masterstabilize-quickfix-13310.76.B-masterstabilize-quickfix-13310.73.B-masterstabilize-13310.99.B-masterstabilize-13310.94.B-masterstabilize-13310.83.B-masterstabilize-13310.74.B-masterstabilize-13310.72.B-masterrelease-R85-13310.B-master
EFS2 boards need to call system_jumped_late in HOOK_INIT to avoid
running init code twice per boot.
system_jumped_to_this_image and system_jumped_late are functionally
equivalent for non EFS2 boards.
This patch will prevent system_jumped_to_this_image from being used
for EFS2 boards when code is copied from a past project.
BUG=chromium:1072743
BRANCH=none
TEST=buildall
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I73fb5cedc5325d1c80825f9346954013046ee1df
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2267685
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index cb70a7c163..ca4c7eb13d 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -282,7 +282,7 @@ static void board_init(void) STM32_GPIO_OSPEEDR(GPIO_D) |= 0x000003cf; /* Sensor Init */ - if (system_jumped_to_this_image() && chipset_in_state(CHIPSET_STATE_ON)) + if (system_jumped_late() && chipset_in_state(CHIPSET_STATE_ON)) board_spi_enable(); } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); |