From a9f8b204316a8eacabcfb1b68ac4268652b97e47 Mon Sep 17 00:00:00 2001 From: jiangguangming Date: Tue, 11 Jan 2022 11:17:49 +0800 Subject: [PATCH] spi_flash: enable ESP32C2 SPI_FLASH_ROM_IMPL --- components/spi_flash/Kconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.