From c9af36610d4320568d1e18f903574e84995c305e Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Wed, 25 Dec 2024 22:02:31 +0800 Subject: [PATCH] fix(esp_hw_support): fix FLASH leakage workaround kconfig dependcy --- components/esp_hw_support/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/esp_hw_support/Kconfig b/components/esp_hw_support/Kconfig index d87f999c22..5d2fd16c43 100644 --- a/components/esp_hw_support/Kconfig +++ b/components/esp_hw_support/Kconfig @@ -77,7 +77,7 @@ menu "Hardware Settings" config ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND bool "Pull-up Flash CS pin in light sleep" - depends on !APP_BUILD_TYPE_PURE_RAM_APP && !ESP_SLEEP_POWER_DOWN_FLASH + depends on !APP_BUILD_TYPE_PURE_RAM_APP default y help All IOs will be set to isolate(floating) state by default during sleep. @@ -109,8 +109,7 @@ menu "Hardware Settings" config ESP_SLEEP_MSPI_NEED_ALL_IO_PU bool "Pull-up all SPI pins in light sleep" - depends on !ESP_SLEEP_POWER_DOWN_FLASH \ - && (ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND || ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND) + depends on (ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND || ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND) default y if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32S3 help To reduce leakage current, some types of SPI Flash/RAM only need to pull up the CS pin