feat(esp_hw_support): support top pd during sleep in esp32c5 eco3
This commit is contained in:
@@ -2563,6 +2563,12 @@ FORCE_INLINE_ATTR bool top_domain_pd_allowed(void) {
|
|||||||
#if SOC_XTAL_CLOCK_PATH_DEPENDS_ON_TOP_DOMAIN
|
#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);
|
top_pd_allowed &= (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON);
|
||||||
#endif
|
#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;
|
return top_pd_allowed;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user