feat(esp_hw_support): support top pd during sleep in esp32c5 eco3

This commit is contained in:
hebinglin
2025-11-20 21:07:32 +08:00
committed by BOT
parent f4bc4ea6f9
commit c675bff4ee
+6
View File
@@ -2561,6 +2561,12 @@ FORCE_INLINE_ATTR bool top_domain_pd_allowed(void) {
#if SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
top_pd_allowed &= (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON);
#endif
#if CONFIG_IDF_TARGET_ESP32C5
if (!ESP_CHIP_REV_ABOVE(efuse_hal_chip_revision(), 102)) {
// ESP32C5 chips lower than v1.2 are not supported to power down the TOP domain
top_pd_allowed = false;
}
#endif
return top_pd_allowed;
}