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

This commit is contained in:
wuzhenghui
2025-11-12 17:02:52 +08:00
parent 90a83ba79d
commit b6fcb783f5

View File

@@ -2623,6 +2623,13 @@ static 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;
}