mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
fix(spi_flash): Add external flash support on esp32c6,esp32h2,esp32p4,esp32c5
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user