diff options
Diffstat (limited to 'chip/stm32/spi.c')
-rw-r--r-- | chip/stm32/spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/stm32/spi.c b/chip/stm32/spi.c index a4a8e9febc..2218df6f66 100644 --- a/chip/stm32/spi.c +++ b/chip/stm32/spi.c @@ -622,6 +622,9 @@ static void spi_chipset_shutdown(void) /* Set SPI pins to inputs so we don't leak power when AP is off */ gpio_config_module(MODULE_SPI, 0); + + /* Allow deep sleep when AP off */ + enable_sleep(SLEEP_MASK_SPI); } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, spi_chipset_shutdown, HOOK_PRIO_DEFAULT); |