diff --git a/components/spi_flash/Kconfig b/components/spi_flash/Kconfig index 9fa4f7f543..8a1e852386 100644 --- a/components/spi_flash/Kconfig +++ b/components/spi_flash/Kconfig @@ -53,9 +53,13 @@ menu "SPI Flash driver" to flash on ESP32-D2WD; (2) main SPI flash is connected to non-default pins; (3) main SPI flash chip is manufactured by ISSI. + config SPI_FLASH_HAS_ROM_IMPL + bool + default y if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 + config SPI_FLASH_ROM_IMPL bool "Use esp_flash implementation in ROM" - depends on IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C3 + depends on SPI_FLASH_HAS_ROM_IMPL default n help Enable this flag to use new SPI flash driver functions from ROM instead of ESP-IDF.