diff options
author | Mary Ruthven <mruthven@chromium.org> | 2022-04-26 10:54:50 -0500 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-27 14:11:47 +0000 |
commit | 0ab123eac0939364c96c07ed279148864c3e41fd (patch) | |
tree | a4911ee57f9ece4615b72908846d9ad304de2378 | |
parent | eb9f26b0f47129791a69d86deac0b17a2caace28 (diff) | |
download | chrome-ec-0ab123eac0939364c96c07ed279148864c3e41fd.tar.gz |
cr50: deassert AP_FLASH_SELECT before deep sleep
BUG=b:229974371
TEST=Assert AP_FLASH_SELECT then enter and exit deep sleep on EC-EFS
board.
Change-Id: I00437076ef4881dd60dd67e511100410dd155555
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3607064
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | board/cr50/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index b47bb4f611..c5c88f82f2 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -593,6 +593,13 @@ DECLARE_IRQ(GC_IRQNUM_PMU_INTR_WAKEUP_INT, pmu_wakeup_interrupt, 1); void board_configure_deep_sleep_wakepins(void) { /* + * Eventually asserting AP_FLASH_SELECT will disable deep sleep. Until + * that's enabled make sure cr50 doesn't enter deep sleep with + * AP_FLASH_SELECT asserted. + */ + if (board_has_ec_cr50_comm_support()) + gpio_set_level(GPIO_AP_FLASH_SELECT, 0); + /* * Disable the i2c and spi periph wake sources since the TPM is * not being used and reenable them in their init functions on * resume. |