spi_flash: Add auto-suspend mode for ESP32-S2

Uses HW auto_wait_idle, HW auto_suspend and SW resume
This commit is contained in:
KonstantinKondrashov
2020-05-10 17:32:07 +08:00
committed by Cao Sen Miao
parent afef16c2e9
commit 60e58eaddb
5 changed files with 21 additions and 0 deletions
@@ -61,6 +61,7 @@ static const spi_flash_host_driver_t esp_flash_gpspi_host = {
.configure_host_io_mode = spi_flash_hal_gpspi_configure_host_io_mode,
.poll_cmd_done = spi_flash_hal_gpspi_poll_cmd_done,
.flush_cache = NULL,
.check_suspend = memspi_host_cb_check_suspend,
};
#endif