mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(esp_hw_support): support top pd during sleep in esp32c5 eco3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user