diff options
author | Sam Hurst <shurst@google.com> | 2022-05-27 12:44:17 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-31 18:51:39 +0000 |
commit | cd4bec57d1bd8f197f5cb6c6ecc741994cbe9260 (patch) | |
tree | bd158242487b7af04bc64557813499aeebf8f3ad | |
parent | 40a7e71278643212df59fbfca87387f04469b7da (diff) | |
download | chrome-ec-cd4bec57d1bd8f197f5cb6c6ecc741994cbe9260.tar.gz |
zephyr: ite: Use EC_SPI_RX_READY macro
Using EC_SPI_RX_READY instead of EC_SPI_OLD_READY
prevents the SDO line going high when the AP shuts down.
BUG=b:216831450
BRANCH=none
TEST=zmake testall
Verified on scope that SHI_SDO does not pulse high
during AP Shutdown
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I0ac0eeb26fdb558cfb6c9fc0dbfe61240e2195ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3674596
Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r-- | zephyr/drivers/cros_shi/cros_shi_it8xxx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/drivers/cros_shi/cros_shi_it8xxx2.c b/zephyr/drivers/cros_shi/cros_shi_it8xxx2.c index 3d50ebb7f4..3d0db3bc89 100644 --- a/zephyr/drivers/cros_shi/cros_shi_it8xxx2.c +++ b/zephyr/drivers/cros_shi/cros_shi_it8xxx2.c @@ -79,7 +79,7 @@ enum shi_state_machine { static enum shi_state_machine shi_state; static const int spi_response_state[] = { - [SPI_STATE_READY_TO_RECV] = EC_SPI_OLD_READY, + [SPI_STATE_READY_TO_RECV] = EC_SPI_RX_READY, [SPI_STATE_RECEIVING] = EC_SPI_RECEIVING, [SPI_STATE_PROCESSING] = EC_SPI_PROCESSING, [SPI_STATE_RX_BAD] = EC_SPI_RX_BAD_DATA, |