spi_flash: enable ESP32C2 SPI_FLASH_ROM_IMPL
@@ -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.
