Merge branch 'fix/fix_c6_rtc_periph_depends_on_top_v5.5' into 'release/v5.5'

fix(esp_hw_support): add dependency of the TOP domain to the RTC_PERIPH domain for esp32c6 (v5.5)

See merge request espressif/esp-idf!43383
This commit is contained in:
Jiang Jiang Jian
2025-11-17 15:16:14 +08:00
+7
View File
@@ -2748,6 +2748,13 @@ static SLEEP_FN_ATTR uint32_t get_power_down_flags(void)
}
}
#endif
#if CONFIG_IDF_TARGET_ESP32C6
if (!(pd_flags & PMU_SLEEP_PD_TOP)) {
// TOP power domain depends on the RTC_PERIPH power domain on ESP32C6, RTC_PERIPH should only be disabled when the TOP domain is down.
pd_flags &= ~RTC_SLEEP_PD_RTC_PERIPH;
}
#endif
return pd_flags;
}