fix(spi_flash): Add external flash support on esp32c6,esp32h2,esp32p4,esp32c5

This commit is contained in:
C.S.M
2024-07-30 11:10:29 +08:00
parent adb1a81729
commit 17f814acf3
8 changed files with 142 additions and 94 deletions

View File

@@ -103,6 +103,7 @@ esp_err_t spi_flash_hal_configure_host_io_mode(
return ESP_ERR_NOT_SUPPORTED;
}
#ifndef GPSPI_BUILD
#if SOC_SPI_PERIPH_SUPPORT_CONTROL_DUMMY_OUT
// The CONTROL_DUMMY_OUTPUT feature is used to control M7-M0 bits.
spi_flash_ll_set_dummy_out(dev, (conf_required? 1: 0), 1);
@@ -131,6 +132,9 @@ esp_err_t spi_flash_hal_configure_host_io_mode(
spi_flash_ll_set_extra_address(dev, 0);
}
#endif
#else
gpspi_flash_ll_set_dummy_out(dev, (conf_required? 1: 0), 1);
#endif
#if CONFIG_IDF_TARGET_ESP32P4
// TODO: This is temporarily for ESP32P4-ECO0, please remove it when eco0 is not widly used. IDF-10019