From 241dc137a2163a6891288f9f00c2dffebe79f0b1 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 fde8b3ecf3..5243a01775 100644 --- a/components/esp_hw_support/Kconfig +++ b/components/esp_hw_support/Kconfig @@ -79,7 +79,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. @@ -111,8 +111,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